WordPress.org

Ready to get started?Download WordPress

Forums

Style Switcher : Two Name Styles (2 posts)

  1. Sphyr
    Member
    Posted 10 years ago #

    I had some style made up of two names, such as "Blue Swirly". I found out that MSIE was displaying this style properly but Firefox was not.
    The problem was tracked down to the modification to the index.php file.
    What the WP Style Switcher outputs is:
    @import url(mystyle.css);
    Note the lack of quotes around the filename. If you have a space in your CSS filename, then you end up with something like:
    @import url(/path/to/my style.css);
    At this point, IE assumes that the text between the brackets is a single URL, and Firefox assumes you're passing two commands.
    If you want to fix it without needing to rename your styles, you can simply add quotes around the style filename in your index.php:
    @import url( "<?php wp_stylesheet(); ?>" );
    rather than
    @import url( <?php wp_stylesheet(); ?> );
    The fellow gamer that tracked this down (alas, it was not me) has put up a test install of WordPress that does this at http://www.totalbiscuit.com/wordpress/ . I've since fixed it at my site on Chasing the Wind and can use "Blue Swirly" again.
    Try the "blue fade" style.
    Hope this helps somebody.

  2. southerngal
    Member
    Posted 10 years ago #

    Thank you for this, worked like a charm! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.