WordPress.org

Ready to get started?Download WordPress

Forums

Add a background color to my Sidebar? (8 posts)

  1. bfreedom74
    Member
    Posted 7 years ago #

    How do I add a background color, say blue, to my sidebar?

  2. Academiphiliac
    Member
    Posted 7 years ago #

    Here's one way:

    1. In the admin page, choose Presentation > Theme Editor.
    2. Look through your style.css file for "#sidebar" and find color information inside those curly brackets.
    3. Change at will, then save.

    Don't know your CSS? Start learning.

  3. bfreedom74
    Member
    Posted 7 years ago #

    There is no color information. I tried adding
    color:#1E90FF
    But it didn't work, is there something I am missing

  4. Jeremy Clark
    Moderator
    Posted 7 years ago #

    Color will change the text color not background color it should be this here to change background color.
    background-color: #1E90FF;

  5. bfreedom74
    Member
    Posted 7 years ago #

    This is what it looks like, it still isn't changing anything:

    #sidebar {
    float: left;
    background-color: #1E90FF;
    width: 200px;
    font-size:0.9em;

    }

  6. Jeremy Clark
    Moderator
    Posted 7 years ago #

    That should have changed it. Do you have a link to the actual site to see what is happening.

  7. bfreedom74
    Member
    Posted 7 years ago #

  8. whooami
    Member
    Posted 7 years ago #

    your theme doesn't have any divs that are using that id.

    In other words, look at your source, search for sidebar, specifically, look for <div id="sidebar"> --its not there :)

    that's why that's not doing anything.

    Some of your sidebar stuff is inside a textwidgets <div>, some is still inside the content div>. You also need to address your validation errors.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.