WordPress.org

Ready to get started?Download WordPress

Forums

CSS Style Switcher (36 posts)

  1. fbdp
    Member
    Posted 10 years ago #

    Yes, siteurl... (I'm on WP 1.2). (I'm the Anonymous.)
    The style switcher uses a cookie to record your preferred style. My problem was that I was visiting the site as http://localhost/wp but the cookie was being written as to http://127.0.0.1/wp. As the script was reading the cookie from http://localhost/wp it couldn't detect the style change.
    Can you provide a URL so I could check the problem? I looked at your site but it's using another style switcher (and it's working).

  2. davidcrickett
    Member
    Posted 10 years ago #

    Well, I've tried to implement this for two days now. Everything works, except for I can't get the backgrounds pictures to show... and that's the only thing I want to change. The example styles change, I can tell, but also without any background pictures... or colors. I have given up on this hack.

  3. fbdp
    Member
    Posted 10 years ago #

    davidcrickett: Check this thread:
    Alex wp-switcher not working properly

  4. davidcrickett
    Member
    Posted 10 years ago #

    Well, I did write the whole path also - I know this stumbleblock. Another one was finding out the directory had to be wp-style not wp-styles. That made a whole lot of difference! ;-) Maybe when I forget all the trouble with this hack I'll try and install it again. Such a pity. WordPress is really nice, why is this hack so difficult and not very precise in the documentation?

  5. davidcrickett
    Member
    Posted 10 years ago #

    Aahhh, finally! I reinstalled StyleSwitcher from scratch, and this time I removed the wp-layout.css and the background pic from the root. Voila! Very nice hack! ;-)

  6. xtool
    Member
    Posted 10 years ago #

    So I guess its the wp-layout.css
    I was having the same problem as well. I will give it a try and see what happened. Wish me luck! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.