Archive for the 'tips' Category

Dynamic Stylesheets using PHP

Thursday, September 17th, 2009

CSS Recently while doing some work on my theme for WordPress I came across a very helpful idea. Using PHP in a stylesheet to make it more dynamic. The basic idea is to use PHP variables and define certain elements that repeat in various places such as a color code to make it easily changeable by only having to change one line instead of searching for and replacing multiple times. Other examples are fonts, images, widths, even whole sections of code could be shown or hidden with the use of variables and an if statement.

(more…)

Tags: , , ,

Making Header Image Clickable Link

Monday, November 3rd, 2008

CSSSometimes a text header link just doesn’t cut it. Making a image a clickable header link is very simple. You can see the result above, the area around the name in the image is a link back to the home page.

(more…)

Tags: , , ,

CSS Tip: Image Rollover effect

Thursday, October 2nd, 2008


After working on wordpress themes for a while I’ve come across a few stylesheet techniques and figured I’d share so I’ve started a new category of posts. I’ll continue below.

(more…)

Tags: , , , ,