Modify The Format Of WordPress Titles On The Fly
It’s A Pretty Neat Trick
Do you have a WordPress blog and at times have titles that are a little long? Are there times when a sub heading could be a nice addition? If so then there is a little trick to modifying your post’s title that you may find useful.
This post has a modified title. Because of the way the style sheet is setup, the various H tags act very differently to each other. You could add your own styles to the style sheet if you knew how (and I will write about that in another post), or you could just modify the titles when you need to.
I wrote in an earlier post about modifying H tags within a post. A similar set of commands can be used to great effect in the title. In the title to this post I have used the command:
[h3]Modifying WordPress Titles On The Fly[/h3>]It’s A Pretty Neat Trick
When doing it yourself, be sure to replace the square brackets with the code placeholder tags <>. You can also use the BR tag to wrap the text to a new line when you need to.
You will need to play around with your H tags to see what sort of effects you get. What it is does do is create a different style of heading for your post titles. It can certainly make them look more interesting.
A word of caution – if you have the post url rewrite on so that the post title is written to the url, you want to consider using a plugin like the Platinum SEO Pack or similar that allows you to rewrite the title. You can then strip the code away for a clean url – otherwise, you are likely to see some strange url’s for your pages – certainly not SEO friendly urls.


Wow! Lol why had I never been told about this in any Wordpress tutorials? That will be very useful. I wonder how search engines read it.
[...] The Format Of WordPress Titles On The Fly http://myradicalblogs.com/?p=949 [...]