I was wondering, given a 1.5 install, and a customized theme, is it possible to load a different css file depending on the current category being displayed?
I’m going to assume that this would be done in the header.php file, I could check for the currently displayed category, and if it is Cat X, Y, or Z, I can change the CSS link to X-layout.css, Y-layout.css or Z-layout.css. Does that sound reasonable? Can anyone find a flaw in that theory? Better idea?
- The topic ‘Category-based templates/styles’ is closed to new replies.