Selective Changes
-
Hey all. It’s great to be able to change an entire site by modifying a few files. I’m wondering how to target specific “pages”. For example, the main page of my theme is implemented using “index.php” (duh), and I have various categories containing posts, which are on the sidebar acting as “pages” (?cat=whatever) which is another no brainer.
My question is this, how can I manipulate elements of a certain “page” ? I’m assuming that what we think of as “pages” are actually entries in a database (hence ?cat=whatever). So as one might fathom I’m having trouble understanding how to change characteristics of such an item.
I hope you guys can follow me here, it’s nice to change one file and have the changes cascade, but I’m a little stuck as far as changing individual pages/categories. The most that I can do in site admin is change text, so my best guess at this point would be a conditional within index.php to the effect of:
*if this is ?cat=1 (or ?page=1 for that matter), change the background color to #808080 (example), if it is not then leave alone.
see what im sayin?
The topic ‘Selective Changes’ is closed to new replies.