Changing nav bar color

Viewing 6 posts - 1 through 6 (of 6 total)
  • #4760
    dine
    Participant

    Hi,
    I just installed Esplanade in my WP.
    I want to change the nav bar background color and footer area background color to a lime green instead of black.

    I cannot find the code in style.css to change it.
    Could you assist me?
    Thanks Nadine

    #4774
    dine
    Participant

    Hi again,
    I have no experiences with the new CSS3 model but found out that my color question seems to regard to this.
    Am I correct at the point to change the color for the navigation bar here:
    #access li.current_page_item > a
    I tried different color codes but nothing changes on the website.

    I am happy for every hint.

    #4815
    awinner5
    Participant

    To change this, enter custom CSS in the Theme Options –> Design. Use the blocks below to create your CSS and paste it in the box on this page that says “enter your custom CSS.”

    Note that the nav bar is not a solid color, it’s a gradient. So you will need two color numbers to achieve the gradation.

    To change the main nav bar, use this block below – where (#7D7E81, #939598 40px) is the parameters for your gradient. The first number is the darkest the gradient will be, the second is the lightest. These two numbers are the two you need to change to switch your background color. Set them for the same in the whole block (as it is below). So for lime green, something like: (#34EA68, #4CFC7E 40 px) though I didn’t test that so it might be really ugly πŸ™‚

    #access {
    min-height:40px;
    box-shadow:0 0 3px #999;
    background:#939598;
    background:-moz-repeating-linear-gradient(#7D7E81, #939598 40px);
    background:-webkit-repeating-linear-gradient(#7D7E81, #939598 40px);
    background:-o-repeating-linear-gradient(#7D7E81, #939598 40px);
    background:-ms-repeating-linear-gradient(#7D7E81, #939598 40px);
    background:repeating-linear-gradient(#7D7E81, #939598 40px);
    }

    To change the main nav bar hover color (the box around the menu item), use this block:

    #access a:hover,
    #access li.current_page_item > a {
    background:#777;
    background:-moz-linear-gradient(#8A8C8E,#939598);
    background:-webkit-linear-gradient(#8A8C8E,#939598);
    background:-o-linear-gradient(#8A8C8E,#939598);
    background:-ms-linear-gradient(#8A8C8E,#939598);
    background:linear-gradient(#8A8C8E,#939598);
    color:#fff;
    text-decoration:none;
    }

    To change the color of the menu item for the page that you’re currently on, use this:

    #access li.current_page_item > a {
    background:#939598;
    background:-moz-linear-gradient(#8A8C8E,#939598);
    background:-webkit-linear-gradient(#8A8C8E,#939598);
    background:-o-linear-gradient(#8A8C8E,#939598);
    background:-ms-linear-gradient(#8A8C8E,#939598);
    background:linear-gradient(#8A8C8E,#939598);
    }

    To change the color of the drop down menu items, use this:

    .drop-down-toggle {
    position:absolute;
    top:7px;
    right:16px;
    display:none;
    width:20px;
    height:20px;
    border-radius:15px;
    background:#333;
    background:-moz-linear-gradient(#333,#444);
    background:-webkit-linear-gradient(#333,#444);
    background:-o-linear-gradient(#333,#444);
    background:-ms-linear-gradient(#333,#444);
    background:linear-gradient(#333,#444);
    border:#aaa 3px solid;
    }

    I think the footer options are under Theme Options –>Topography, all the way at the bottom of the page.

    Hope that helps!

    • This reply was modified 12 years ago by awinner5.
    #4829
    dine
    Participant

    Thank you,
    that works for the main color of the nav bar.
    When I change the code for hoover and current page item nothing changed πŸ™
    the same grey shade appears.

    I have no idea why it does not work.

    #4830
    awinner5
    Participant

    Hmm. I think there might be something funny with that custom CSS box in the theme options. I created a child theme and used that code and it worked. Maybe try that? (here is info on child themes if you’re not familiar: http://codex.wordpress.org/Child_Themes)

    I’m no wizard, just figuring things out bit by bit, so apologies that I don’t have a definite fix for you. It worked for me though πŸ™‚

    #5578
    mattdmin
    Participant

    Oddly enough, the first reference to #access works just fine, all the other modification do not take for some odd reason. I even installed a child theme to test it on, no bueno. Using Firefox and IE, I see no changes, I even reloaded my browser CACHE with a Cntrl Shift R in Firefox. Any suggestions?

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.