WordPress.org

Ready to get started?Download WordPress

Forums

ALA PHP Switch: Cookie Conflictions? (3 posts)

  1. snlildude87
    Member
    Posted 9 years ago #

    Hey. A few days ago, I wanted to implement a style switcher on my site. A List Apart provided me with said switcher. The code you see on the ALA article is the same exact code that I used on my site. The only thing difference is that I changed some options (<option> tag) because I only have two styles. The PHP code of switcher.php was left unchanged.

    If you switch styles on my other pages, it will work, and you will see the new style applied. It also works if you change styles on my blog, but it won't show - you have to go to another section my site to see it in action.

    Could this be a cookie confliction that's making my blog use style_experiment.css even though one changed the style to green.css?

    Any help is appreciated!!

  2. kickass
    Member
    Posted 9 years ago #

    Rather than using an outside tool, which may not recognize the necessity of jumping from theme folder to theme folder, it might be better to use a plug-in that's designed to work with WordPress. I use this plug-in here:
    http://boren.nu/archives/2004/10/13/theme-switcher-plugin/

    You can see it in action here, just scroll down the linklist til you find it:
    http://kickasswebdesign.com/wordpress/

    Good luck!

  3. vkaryl
    Member
    Posted 9 years ago #

    Have to second kickass's recommendation: I've been using Ryan's themeswitcher since about 3 days after installing WP. It's specific to the program, which just makes everything easier.

    If you try it and run into problems, post back.... one or the other of us will try to sort things for you....

Topic Closed

This topic has been closed to new replies.

About this Topic