praneeth
praneeth

Reputation: 9

How to change meta title as rich text

I am new to django. I want to change meta title(header) as rich text( or I want to remove html tag) in django wagtail dashboard,

I tried add wagtailadmin/shared/header.html file and change the title as {{title|safe}} but its not worked.

Upvotes: 0

Views: 240

Answers (2)

praneeth
praneeth

Reputation: 9

I override templates/wagtailadmin/pages/edit.html as {% block titletag %}{% blocktrans with title=page.get_admin_display_title|striptags page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }}: {{ title }}{% endblocktrans %}{% endblock %}

Now It fixed.

Upvotes: 1

Enquest
Enquest

Reputation: 101

Why would you want to change the meta title to a rich text? Meta title is for your meta header.

Upvotes: 0

Related Questions