Support » Plugins » Using Cookies in Handmade Scripts

  • sumeetjain


    Hi, I’m trying to use a little script I wrote for adding some control over the CSS on a site I run. It’s different than the functionality offered by the theme switcher plugins, but the concept is similar.

    If you check out this link:, you’ll see that I basically want to allow users to choose a contract, width, and text size. Based on their selection, a different style sheet is imported. It’s working fine on the page above, but as soon as I try to run it in the actual WordPress, it doesn’t get the parameters from the URI. Otherwise, it works fine.

    Any help would be much appreciated. Is there perhaps a certain way to use cookies in handmade scripts with WordPress? The code is here:

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mark (podz)


    Support Maven

    Doing what you wish is certainly possible.
    The above is one resource, and there is a js method on that site too.



    Hi Podz, thanks for the link. I’m actually already aware of ALA’s tutorial, but their script isn’t exactly what I’m trying to do. And even if it is, I’d like to know what I’m doing wrong in my script that it won’t work in WordPress. Otherwise, I’ll keep making the same mistakes.

    Anyone have an idea why the script works on a regular page but not in WordPress?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Cookies in Handmade Scripts’ is closed to new replies.