WP not using custom title with HTML in custom title of block

Posted in: Newspaper
Post count: 7

I want to add custom title for block with <span> tags just as

<span class=’red’>My Favorite</span><span class=’blue’>Category</span>

On my local WP installation, this works fine and the <span> tags show up.

However, on my host, it strips everything and just uses the Category name that I’m filtering by.

Is this a setting in Newspaper, WP, or outside of WP where it doesn’t allow HTML tags in theme settings?

Post count: 9544

You can’t have html in the WP titles for a post.

You can edit WP to change behavior in the templates, where what “prints on page” pull from dbase and post meta has style applied.

You can also write HTML in the text editor for posts.

You can also setup custom field, such as with Advanced Custom Fields, with a custom field for a title; then change your template to “print” that field, and NOT the main title field; then rest of site would pull the default title.

Hope that at least pointed you in some direction.

Post count: 7

Thanks for answering. Sorry, to be clearer, I’m referring to the input field in Block 6 settings (or any block) that is:

Optional – custom title for this block
[ text field ]

I want to put HTML in this field. It works find on WP onlaptop but not on WPEngine. Can’t figure out why? Maybe there’s a different setting in a .gitignore file on WP that is different on their server verses my server.

Thanks for your help!

Post count: 9544

ah… in the block setting (duh).

I think they have that set to filter out HTML since a class is being applied to that already you might end up with broken HTML by simply using HTML.

oh….
there are no gitignore files for theme, except by mistake 😉
any for the theme should actually be removed.

Post count: 7

Thanks Chris, I’ll ask WPEngine

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.