- index.php (two of these if you installed WP in a directory under your site root but have index.php in your root)
- wp-comments-popup
- wp-comments-reply
Styleswitcher Mod to WP October 16, 2004 @ 11:02 AM
Printed from: http://www.stylehack.com/wordpress/index.php/2004/10/16/styleswitcher-mod-to-wp/
Ed. Note: I removed my complaining because I found a k i l l e r plugin called the iG:Syntax Hiliter that uses the GeSHi Highlighter. I am thrilled! There are just a couple of things I need to work out, probably “user error”, but I’m going to contact the author for help while singing praises galore! By the way, if you aren’t familiar with GeSHi, be sure to check it out! [rev 9:56 pm CST]
Ok, I’ve done a bit of fiddling this morning even though I swore I was “grounded” off the computer all weekend. Fiddling means adding a PHP Styleswitcher to this installation of WP, based on the one found at ALA.
Proviso: If you try the Plain Jane style, it actually loads the print.css file for right now which means no navigation! The only way to get back is to use the back button on your browser.
First thing to report: I added the runPHP plugin and activated; don’t bother, it not only didn’t work it actually prevented me from editing or deleting a test post including PHP. Since it was just a test of the switcher link, it’s no big deal and I didn’t bother to see what or why. Just deactivated it.
Second thing to report: I hate that friggin’ Quicktags and that is the first thing I am going to shut off. What kind of idiots want that formatting their posts??? Just one more thing to slow me down and mess things up.
Ok, here’s “How I did it’ re Styleswitcher:
1. Create the switchter.php file (repeated here as a courtesy - see ALA link above for details):
[php][/php]
2. Create a my-hacks.php file to declare the stylesheet variables I wanted to use (don’t forget to activate this legacy feature in your admin panel:
[php][/php]
What I wanted to do here was not only define the stylesheets available to use, but also assign a Title that can be used for linking and even in the header tags if so desired.
3. Ok, here’s the clunky part… I had to change 3 (4) files…

