Support » Fixing WordPress » background color for the content

  • DEdesigns57

    (@dedesigns57)


    I want to change the background color for the area on the site where the articles and text is posted. I looked up the html for it and tried using CSS in the following way:
    div #primary {background-color: mycolor;} but nothing happens.
    Any ideas.
    My Site: nickingoglia.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    Use a Browser Developer tool for this kind of CSS exploratory work.
    I used Google Chrome’s Developer Tool and found the element, <div id="page"> that was being applied a black background colour (on right of toolbar) http://snag.gy/mkHga.jpg

    DEdesigns57

    (@dedesigns57)

    Well when I try using that id and changing the background to say red. It only works on some of the pages and not all of the pages. I need a something to work on all of the pages.

    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    Can you provide a link to the webpage that does not change the background?

    DEdesigns57

    (@dedesigns57)

    all of the main pages, that it: home, looking-back, going-forward, contact, plus some of the articles didn’t change either.

    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    You may have to add !important on the end of the style;
    E.g

    background-color: red !important;

    DEdesigns57

    (@dedesigns57)

    using: div#page {background-color: red important;}

    still didnt apply it to all the pages.

    DEdesigns57

    (@dedesigns57)

    added the missing “!” and still same result.

    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    Are you adding the CSS to your Custom CSS Manager plugin?

    DEdesigns57

    (@dedesigns57)

    yes i am

    Moderator Andrew Nevins

    (@anevins)

    Front-end developer

    Can you post here the CSS you’re trying?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘background color for the content’ is closed to new replies.