The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End php style switcher css problems in wordpress

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #30909

    I have three style sheets (default, lowgraphics, highcontrast, in that order) and I’m using Rob Ballou’s v.1 php styleswitcher in my WordPress v.3 blog. When I use Firefox to switch between the stylesheets, everything displays as expected. (The site is here.)

    But when I use the php switcher (via user-selectable buttons) the three stylesheets interact in some new and weird way. Some of the formatting from the non-default choices is applied, but some isn’t. Those pages, of course, look like crap. What I’ve been doing is going through and tweaking the styles till stuff works, but it’s a real pain because the problem is only evident on the live site. On my local server where I try things out first, the php switcher won’t work. (Something to do with cookies, I gather?)

    So, my question is: what the hell is going on? ?? Why does it do this? Is there anything I can do to deal with the problem more elegantly than manual kludges on all the style sheets?

    Update: AAAAAAARGH! That’s what it was doing yesterday. Today it’s not switching the style sheets at all. The cookie shows that the style switcher thinks it’s using the selected style, but the default is always displayed. Firefox always shows the default as selected. If other styles are selected in Firefox, and a style switcher button is used to select another one, it displays default and Firefox says it’s using default. I have no idea what’s going on and am tearing my hair out! I hope you folks can help!

    If posting the php code would be useful, let me know. Thanks for any help the php wranglers out there can give me!

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.