Title: Mozilla Compatibility Issue
Last modified: August 18, 2016

---

# Mozilla Compatibility Issue

 *  [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/)
 * My site works fine in Firefox, Netscape and IE but doesn’t in Mozilla 🙁 The 
   header and the stylesheet don’t show up properly. I think it’s to do with the
   style switcher I use. Can anyone help?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141938)
 * Sorry, it’s very early in the morning…
 * URL is [http://www.vaguely.org/blog](http://www.vaguely.org/blog)
    PHP source
   is at [http://www.vaguely.org/blog/phpsource.txt](http://www.vaguely.org/blog/phpsource.txt)
 *  [jeremycherfas](https://wordpress.org/support/users/jeremycherfas/)
 * (@jeremycherfas)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141940)
 * Absolutely terrible in Safari. Probably the same problem as you describe for 
   Mozilla. No styling whatsoever.
 * Jeremy
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141944)
 * At the moment the ‘site style’ variable doesn’t get a value so the style sheet
   is looked for in a file called “.css”
    Would it be silly to “hard-code” your 
   default style sheet (called User Defined Style in the head tag) to the one you’ve
   selected as default (pink)? That’d at least be a quick fix 😀
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141952)
 * Sorry if I’m being dense but how do I do that?
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141955)
 * just replace this line in your index.php (or the PHP source you pasted above)
   `
   <link rel="stylesheet" type="text/css" media="screen" title="User Defined Style"
   href="http://www.vaguely.org/blog/<?php echo($sitestyle);?>.css" /> with the 
   direct address to your pink style sheet (weblog.css I think): <link rel="stylesheet"
   type="text/css" media="screen" title="User Defined Style" href="http://www.vaguely.
   org/blog/weblog.css">
 * Oh, hold on… maybe you should add a new link because that site style probably
   gets the wanted style from the switcher…
    so put the latter link tag with a different
   title above the former link tag 😀
 * Ehm… I’m not sure that’ll work after all. If the first stylesheet link is always
   selected. Oh well, I don’t know how the switcher works.
 * Sorry… :/
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141959)
 * One way would be to assign an initial value to the sitestyle variable in the 
   switcher code… but maybe there’re answers wherever you got the code from?
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141966)
 * The code is loosely based around this:
    [http://www.alistapart.com/articles/phpswitch](http://www.alistapart.com/articles/phpswitch)
   but I modified it slightly, on somebody’s advice (if I recall, because that tutorial
   doesn’t include an image-switcher so the header graphics don’t change along with
   the themes). Anyway, as you can see there’s a forum attached to it, but it is
   closed 🙁
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141979)
 * If you look at Stage 2 on that page, there is this piece of code:
    `<?php echo(!
   $sitestyle)?'defaultstyle':$sitestyle ?>` You have almost that, but the odd syntax
   checks if you have a cookie with preferred style and if not (which causes the
   problem) it puts the default style. So, in your code instead of ‘defaultstyle’
   it would say ‘weblog’ So, in your `<link>` with the “User Defined Style” title,
   put that php tag instead of what you have there now. Or was there a specific 
   reason for leaving it out?
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141982)
 * It works!! Hooray!!
    Thank you xx 🙂
 * (or at least, it does in Mozilla. Dunno about Safari!)
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141983)
 * The problem was just for the first visit. As soon as one chooses (chose) a theme
   the cookie was saved and the page worked normally. You probably had cookies for
   the other browsers you tested on and when you used Mozilla for the first time(
   on your site) it appeared to be its fault.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Mozilla Compatibility Issue’ is closed to new replies.

 * 10 replies
 * 3 participants
 * Last reply from: [Minna](https://wordpress.org/support/users/minna/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/mozilla-compatibility-issue/#post-141983)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
