WordPress.org

Ready to get started?Download WordPress

Forums

Path
background of #main .wrap (6 posts)

  1. benhaaviv
    Member
    Posted 1 year ago #

    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?

  2. jamesg40
    Member
    Posted 1 year ago #

    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; ???

  3. benhaaviv
    Member
    Posted 1 year ago #

    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?

  4. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

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

  5. benhaaviv
    Member
    Posted 1 year ago #

    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.

  6. jamesg40
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic