• Resolved David Borrink

    (@davidborrink)


    I’m working on a filter that removes sidebars and changes my content width for certain categories in single posts.

    When applied, the sidebars are disappearing but the content area (.site-content in TwentyTwelve) is still at the normal width while there is a crossed-out declaration in the CSS (viewed in Firebug) for my “width:100%” setup. It clearly is my function at work, but my style.css is obviously getting “the last word”.

    How do I get a function to be “the last word” in this situation?

Viewing 2 replies - 1 through 2 (of 2 total)
  • you can try adding !important to the declaration, ie:

    .site-content {
      width:100% !important;
    }

    If you are fine with putting a link to your site on this forum, then its easier to see the problem.

    Hope that helps!

    Thread Starter David Borrink

    (@davidborrink)

    Thanks, Click. I have rarely used the !important term. Forgot about that one.

    That solves the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make CSS in a filter work, instead of stylesheet's CSS’ is closed to new replies.