Stylesheet changer not working with WP links (2 posts)

  1. SFO
    Posted 9 years ago #

    Hi, I hope all this makes sense...

    I have just installed a WP blog to use on my website, as a function on my website I use a stylesheet changer written in PHP so users can change the text size, I wanted to integrate this into the blog. I have partly done this, when I use a self written permalink the cookie information on which stylesheet to use is retained however if I click a PHP link integrated into WordPress (e.g. a category link) the cookie info doesn't work. I don't understand why this is. Any help is much appreciated.

  2. Well, what's your code?

    And I wrote a color changer for the new version of my blog. Here's the code I used (from the theme's header.php):


    When "color" was set in the URL (like site.com/post/1/?color=blue), it'd set a cookie and load blue.css.

Topic Closed

This topic has been closed to new replies.

About this Topic