Support » Plugins » Hacks » Adding HTML to Page Title Field

  • Hi,

    My client has a property website we set up and would like the wording ‘Now Let’ in the title to be a different colour both on the property detail and category view pages in order to stand out. The simplest thing to do is add <span> tags around these words and add some CSS to change the colour. This does work on the property detail view but breaks on the category page. Does anyone know of a way to do this?

    I have searched Google and various forums for plugins or hacks to allow HTML code in the page title field but can’t find anything.


    Jim Isles

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just tried creating a couple of posts using the TwentyTwelve theme it displays the title correctly with HTML in both the single and category view.

    I suspect your category template in your theme is eating the HTML. In the TwentyTwelve theme it just uses the_title()

    Have a look at your theme to see the differences between the theme templates to see what is different in the category template.

    See – you may be able to use the $before or $after parameters to help format your title consistently between theme templates.

    Hi Ianhaycox,

    OK great thanks I’ll have a look at that, it makes sense.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding HTML to Page Title Field’ is closed to new replies.