• I’m trying to use Alex King’s style switcher, and I have done everything, except for one thing. It says to find where it says
    @import url( <?php echo $siteurl; ?>/wp-layout.css );
    in index.php and replace it with
    @import url( <?php wp_stylesheet(); ?> );
    which is all fine and dandy except that my index.php doesn’t say that anywhere that I can find. The closest I found was
    @import url( <?php echo get_settings(‘siteurl’); ?>/wp-layout.css );
    and when I change that, my site loses a stylesheet altogether. Yes, I have the plugin activated. I haven’t played around with it at all. Help? ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • Alex posted his own personal plugin installation. Try searching for it and look at the source to get an idea of how to set your site up. There may also be some slight changes in the plugin itself. As an example, I know I had to change $siteurl to get_settings(‘siteurl’) in my installation.

    Thread Starter webcookie

    (@webcookie)

    @beel: I wasn’t able to find the post you speak of. I seem to remember seeing it at some point and now I can’t find it again.

    Thread Starter webcookie

    (@webcookie)

    Thanks. I’ve looked through everything and still can’t find where my installation was going wrong. Everything was exactly the same. Yet when I put @import url( <?php wp_stylesheet(); ?> ); in over @import url( <?php echo get_settings(‘siteurl’); ?>/wp-layout.css ); the stylesheet was gone completely and none of them would load.

    Have you got your wordpress install in a different folder to the index.php ?
    Have you got the correct folder structure for the stylesheets ?

    That would happen if you don’t have any styles in your new wp-styles folder.

    Thread Starter webcookie

    (@webcookie)

    I have several styles in the wp-style folder. This folder, as well as index.php and the entire WordPress installation is located at https://webcookie.net/wordpress -right now I have index.php altered to use bluefade.css so that’s why it isn’t the default WordPress style.
    @podz: the folder structure for the stylesheets is wordpress/wp-style/Pinkified/style.css (or whatever the style happens to be called instead of Pinkified.

    Thread Starter webcookie

    (@webcookie)

    Can anyone else help please?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘style switcher not working!’ is closed to new replies.