WordPress.org

Forums

The Bootstrap
[resolved] Can't style navbar-inner (6 posts)

  1. Myxomatosis
    Member
    Posted 2 years ago #

    I'm trying to stylize my child theme. Can someone tell me what I'm doing wrong? Here's my child's style.css:

    /*
    Theme Name: child-bootstrap
    Description: Child Theme for the-bootstrap
    Template: the-bootstrap
    Version: 0.1
    */
    @import url("../the-bootstrap/style.css");
    
    .navbar-inner {
      background-color: #fafafa;
      background-image: -moz-linear-gradient(top, #285e2b, #021c0f);
      background-image: -ms-linear-gradient(top, #285e2b, #021c0f);
      background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#285e2b), to(#021c0f));
      background-image: -webkit-linear-gradient(top, #285e2b, #021c0f);
      background-image: -o-linear-gradient(top, #285e2b, #021c0f);
      background-image: linear-gradient(top, #285e2b, #021c0f);
    }

    From everything I've been able to find I'm doing it correctly... Your help is appreciated!

    http://wordpress.org/extend/themes/the-bootstrap/

  2. Good Guy
    Member
    Posted 2 years ago #

    What exactly are you doing and where is site for us to see.

  3. Myxomatosis
    Member
    Posted 2 years ago #

    So far all I'm just trying to change the color of the navbar.

    I'm developing offline right now so I don't have a link. I'm trying to learn WordPress and twitter bootstrap at the same time so when I run into a problem like this I don't know where to start. I know that my child theme's style.css should override(by appending) the style.css. And I know that to change the navbar's color in twitter bootstrap to use the above code...but it doesn't.

  4. Konstantin Obenland
    Code Wizard
    Theme Author

    Posted 2 years ago #

    The selector may not be specific enough if you have an inverted navbar.
    You could make it more specific by prepending an id selector for example.

  5. Myxomatosis
    Member
    Posted 2 years ago #

    Thank you Konstantin,

    Adding the id solved my problem, although I feel like it's a work around because now I have a header.php in my child theme so I won't be getting any updates. Do you plan on adding an id to the navbar in your 'adult' theme?

  6. Konstantin Obenland
    Code Wizard
    Theme Author

    Posted 2 years ago #

    I'm sorry, I didn't mean for you to add an id to the element, but rather use an id in the CSS to make the selector more specific. #access would be a good choice.
    I promise I won't change it (soon)! :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic