Tomasz Dziuda wrote:
Hi,
In fact you can use HTML in the title, but then you have to modify your theme to allow HTML in the title – by default you have:
{{title}}
while you need:
{{{title}}}
Thank you for your help Tomasz!
Changing {{title}} to {{{title}}} does indeed help with adding HTML tags to the title. However, these HTML tags are kept in other parts of the template, such as post navigations and previews.
For example, if I make the title of a post “My Title: <br><br> My subtitle” and configure {{{title}}} in the post template .hbs file, it will add the breaks on the post page, but on another article, in the “previous article” or “next article” section, the title of this post will be displayed as “My Title: <br><br> My subtitle”.
If I change the {{title}} in the post navigation to {{{title}}}, it will add a line break in the post navigation. However, I only wanted this styling for the post itself.
Is there any way to circumvent this? For instance, there’s a section in the Post Setting > SEO options, under “Page Title” that allows you to set a custom post title for the browser tab, which avoids the above issue for browser tabs.