CSS Style Switcher
-
I’ve put a CSS Style Switcher hack up on my WordPress Hacks page.
Here it is in action.
I’m happy to include other styles in this. If you want to contribute one, let me know.
-
I don’t understand why the styleswitcher doesn’t work with the new installation of wordpress. I had styleswitcher in 2 blogs and they both work.
Error message is this
@import url(
Fatal error: Call to undefined function: wp_stylesheet() in /home/protag/public_html/nimrodel/indexwp.php on line 18
line 18 is
@import url( <?php wp_stylesheet(); ?> );@lauren:
1) Did you add the hack to the my-hacks.php file?
2) Did you turn on the my-hacks option in the admin area?
TGAhhhh I forgot to turn it on. No wonder. Thanks.
Is the css comp still running? I thought it had closed.
The competition is over, but I’m still adding style submissions to the site as they come in.
The golf demo site doesn’t work for me w/ ie 6. Works under firefox, though. Definitely not as slick as the sites that use the builtin facilities for css switching (the little toolbar thingy in the corner), though (http://year.sniper8.com/archives/000006.php / http://www.movablestyle.com).
well you can always use css switcher using the browser tools (available in firefox and opera) or use this method!
http://www.alistapart.com/articles/alternate/ok… i’m just now learning css and a php novice, so this may be a simple question.
i would like a main index page that is not a part of the wordpress package. on it i want to put 4 images, each one a link to a different wordpress style. is there a way to pass the cookie from a non-wp page to the wp index.php?Well.. It doesn’t work for me… I’ve done everything as readme tells to do, but when I click on the styles (getting a url with the index.php?wpstyle=XXXX), it simply keeps the default one. What can I been doing wrong? š
Check your cookies. Make sure you’ve allowed cookies to be on.
Also, does the page refresh? It should refresh (should be near invisible) but the ?wpstyle=xxxxx should go away.
TGFinally have a tutorial page for SD. You can find it here. I have also added a few tutorials from the hosting site…this way they are in one place.
I installed this hack and it works fine on my site. However when I try logging into the admin area of WP I get the following – any ideas why?:
Warning: Cannot modify header information – headers already sent by (output started at /home/ail/public_html/wp/my-hacks.php:4) in /home/ail/public_html/wp/wp-login.php on line 254
Warning: Cannot modify header information – headers already sent by (output started at /home/ail/public_html/wp/my-hacks.php:4) in /home/ail/public_html/wp/wp-login.php on line 255
Warning: Cannot modify header information – headers already sent by (output started at /home/ail/public_html/wp/my-hacks.php:4) in /home/ail/public_html/wp/wp-login.php on line 256
Warning: Cannot modify header information – headers already sent by (output started at /home/ail/public_html/wp/my-hacks.php:4) in /home/ail/public_html/wp/wp-login.php on line 257
Warning: Cannot modify header information – headers already sent by (output started at /home/ail/public_html/wp/my-hacks.php:4) in /home/ail/public_html/wp/wp-login.php on line 258southerngal, I’ve already followed your tutorial, and I’ve double cheched each step, but it simply doesnt change styles…
TechGnome may have found the bug (or whatever): the ?wpstyle=xxxxx doesn’t go away. The page doesn’t refresh. When I refresht it by hand, however, it keeps the default style…
Cookies are on. I can change styles in several pages. Also, it doesn’t work in any of my browsers…Chuckie: I’m running WP locally. I was having exactly the same problem of you (and the other Anonymous). I solved it by using 127.0.0.1 instead of localhost on Web address (URI) option under Admin/General Options. Hope it helps.
I believe what you are refering to is Admin > Options > Base Settings > siteurl .. in my case I can’t change that because I am on a shared host.
Thanks for trying,
Chuck
The topic ‘CSS Style Switcher’ is closed to new replies.