Support » Theme: Path » background of #main .wrap

  • Sami,

    I love your theme but after days of work I still have been unable to find a way to change the background color of #main .wrap. I want the color to match the background color of body.custom-background.

    I have tried to change the background color of #main .wrap in the child theme’s style sheet, but no matter how I write the CSS, the white color of the original Path Theme’s #main persists. There must be something I am neglecting to do, but I can’t figure out what. Any idea?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Its coming from line 15 on the style.css, have you tired adding “!important” to the end of the color style like this
    background-color: #ffffff !important; ???

    Thank you very much, jamesg40. Yes, that works.

    In terms of the nuts and bolts of WordPress and the Path theme, what’s the reason we need !important?

    Theme Author Sami Keijonen



    Or use more spesific rule like body #main .wrap. And link to your site so we can take a look.

    Sami, That works as well. Thank you. For some reason, adding a CSS rule to #main .wrap seemed specific enough to me, but it indeed needed that ‘body’ preceding it. Ah well, back to the sisyphean task of learning enough CSS so it does not routinely surprise me.

    the tag !important makes css ignore any other styling for that specific attribute in a rule. It just makes it say, hey read mine instead of anyone elses.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘background of #main .wrap’ is closed to new replies.