10 Feb
I’ve got a new WordPress plugin in the works, you should be able to see its effects here (assuming the browser you use displays images). It replaces the HTML tags you specify (in options) with an image of the text. So if in you template you have your post titles set as a h3 tag, & you’d like all your titles to be images, you go into the plugin’s options and create a new replacement for h3 tags and set the font, colour, size, etc. There is provision to limit to certain classes too (i.e. only replace h3 tags with a class of storytitle). An option will be coming that will allow you to replace any tag of a certain class, but that’s not working just yet.
The obvious question is: Why create a plugin to do this when a perfectly good one already exists?
Firstly let me say this is in no way a disparagement of the Image Headlines plugin, which is very cool, I just wanted a different way of doing it. With the Image Headlines plugin, you need to edit your template files to set which template tags you wanted to replace, which I’m far too lazy to do. Also, if I disabled the plugin it broke my template because it left -image- in front of the text. I also could have fixed this, but as I said, lazy. The other reason was that if people have images turned off then they see the ugly alt text (in IE anyway, Firefox just displays it as plain, styelable text, but IE seems to need to highlight the fact that there’s a broken image). My Image Replacement plugin will not run if the user has either images or javascript turned off, it will just leave the tags alone as plain text that will be styled with CSS as per normal. Credit goes to Peter-Paul Koch for his script to check if the user’s browser can display images.
This plugin isn’t for everyone. A lot of people don’t like using javascript, so for them, the Cold Forged plugin would be much better.
I’ve turned off comments on this post because it would help me greatly if you left any comments / question on the plugin page.