• Hi –
    I’d been successfully using the style switcher plugin from Alex King until I used a WordPress work-around to put my index page in the root of my server while leaving wordpress in a sub-directory. The style switcher now fails to work even though I’ve copied the wp-styles folder to the root along with index.php. When one attempts to change styles, the plugin thinks the index of the site is still located in /wordpress even though in options, the blog address is set properly. Any idea what change(s) I could make to wp-style-switcher.php to work around this? I believe the plugin may be looking at wordpress address as opposed to blog address which is why it’s failing.
    Any info would be helpful.
    Regards –
    Matt

Viewing 7 replies - 1 through 7 (of 7 total)
  • I posted some stuff on issues like this, just do a search, but in all likelihood you need to delete your cookies.

    You probably need to put the style switcher in the same directory as your WP. 🙂

    Thread Starter mattmend

    (@mattmend)

    wp-style folder (containing style CSS) is in the same directory but wp-style is a plugin. Can’t very well move that to the root directory.
    Deleting cookies didn’t help. The links to the style sheets are still pointing to /wordpress/index.php. I’ll have another search through the forums.
    Matt

    get_settings(‘siteurl’) returns the installation url, get_settings(‘home’) returns the blog url.

    I use the style switcher, and my blog is in the root. The wp-style folder is under the wordpress folder. The individual style folders are under wp-style. http://www.chasingthewind.net
    In my index.php, I have this:
    <style type="text/css" media="screen">
    /* @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
    Original line deactivated for Alex's Style Switcher below */
    @import url( <?php wp_stylesheet("BlueSwirly"); ?> );
    </style>

    That sets the default style.
    In my wp-style-switcher.php file, I made several changes to change references from (‘siteurl’) to (‘home’). Line 27, 37, and 105 were changed this way.
    Line 65 I changed the path to “wordpress/wp-style/” instead of “wp-style/”
    I think that was all the changes.

    That last post was me. :/

    Thread Starter mattmend

    (@mattmend)

    Thanks alot. This was the perfect solution.
    Really appreciate it.
    Matt

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Style Switcher’ is closed to new replies.