Hack: Alter Post Title Tag Depending On the Category

So yesterday I showed you how to change the post title, as in the H1 tag of the post page, based on the category of the post. That doesn’t change the title tag, however. Users don’t see or pay attention to the title tag as much, especially with browser tabs only offering limited space for them. But search engines see these and use them in search results.

Continue reading “Hack: Alter Post Title Tag Depending On the Category”

Hack: Altering Post Titles Depending On Categories

So here is something I wanted to do for this site. I want to put “Tip:” before post titles that are in the tips category, and “Hack:” before titles that in the hacks category. I don’t want to just prepend the category name, as that was include the “s” and I don’t want it done for anything other than these two categories.

Continue reading “Hack: Altering Post Titles Depending On Categories”