Results 1 to 3 of 3

Thread: Clear Previous Styles Using Theme Switcher

  1. #1
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts

    Arrow Clear Previous Styles Using Theme Switcher

    1) Script Title: Style Sheet Switcher

    2) Script URL (on DD):

    3) Describe problem: I am using this script in conjunction with WordPress. The problem I'm running into is that, when I switch to my alternate CSS file, some elements of my design won't switch over to the new settings defined in my alternate CSS.

    Is there a way to clear out the default CSS styles so that only the alternate versions display?

    Part of the problem is that I'm using a slideshow plugin that requires me to use the "!important" declaration on some CSS changes I've made to the appearance. When I copy that over to the alternate CSS file, it's just taking the "!important" items from the default style and not using the ones from the alternate.

    I'm thinking if there was a way to flush out the default version, it would then only rely on the alternate CSS for styling info. Does this make sense?

  2. #2
    Join Date
    Jul 2008
    Derbyshire, UK
    Thanked 599 Times in 575 Posts
    Blog Entries


    If you link to the alternate stylesheet AFTER the default one in the <head> section of your web page, and then define alternate CSS with the !important declaration too, the alternate !important styling should override the default !important styling.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. The Following User Says Thank You to Beverleyh For This Useful Post:

    karks88 (06-18-2013)

  4. #3
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts


    Ah, that did it - thank you SO MUCH!

Similar Threads

  1. Combining styles on Style Sheet Switcher
    By rafaelrasalan in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-12-2012, 05:02 PM
  2. Styles Dynamic CSS creation let customer choose styles
    By windows7ni in forum Looking for such a script or service
    Replies: 4
    Last Post: 11-28-2011, 11:17 AM
  3. Clear all
    By fred2028 in forum CSS
    Replies: 2
    Last Post: 03-11-2009, 02:53 PM
  4. Style Switcher - Multiple Styles?
    By Swaydo in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 08-17-2008, 06:09 PM
  5. next previous buttons for style sheet switcher?
    By rysotope in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-01-2007, 06:43 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts