• Resolved travinum1

    (@travinum1)


    Hello wordpress community!
    I was wondering if I could put a separate nav bar, above the main one.
    My website is productforest.com and I want to put some links in the grey area above the main nav bar. Is there a plugin available for this, or do I have to code it myself, I do know a little about php, but I’m certainty no developer yet. Please help me out! Thank you.

    BTW i am using a premium theme

Viewing 15 replies - 16 through 30 (of 32 total)
  • Thread Starter travinum1

    (@travinum1)

    It didn’t do anything, is there any more info about the site that you need. I named the menu in wordpress “Header Menu”.

    Look for this in your style.css file and replace it with the code below.

    .menu, .menu ul {
       font-size:14px;
       list-style:none;
       margin:0 auto;
       display:table;
       padding:0;
    }
    
    This is new and does not reside in your CSS file so you will have to add it.
    
    #menubar.w_960 {
      width: 100% !important;
    }
    Thread Starter travinum1

    (@travinum1)

    Declaring it at the bottom of my CSS file.

    Thread Starter travinum1

    (@travinum1)

    I cant find it. Where should I look, in my child theme styles.css or elsewhere?

    It looks like it is in your parent theme CSS file. Just add it to your child css file to overwrite the parent.

    If I manipulate the CSS in my inspector with those settings It appears perfect. I’m not sure why it isnt working properly Maybe someone can chime in?

    Thread Starter travinum1

    (@travinum1)

    I added it to the child theme and it changed both menus, the main one and the top one, any other suggestions? Is it possible to move the links to the grey area by any chance?

    Move the links to the grey area directly above the content? That little narrow strip of grey below the top navigation?

    Also if you are targeting #menubar.w_960 it should only change the bottom nav, as the top one does not have an ID associated with it.

    If you were targeting .menu then yes it would change both menus as they both have the same class assigned to them.

    It is possible. You’ll need to create the menu registered nav inside your header.php file or wherever <div class=”header-top”></div> is being created.

    #menubar.menu ul {
       font-size:14px;
       list-style:none;
       margin:0 auto;
       display:table;
       padding:0;
    }

    To just target the ul of the second nav (not the nav at the top of the page)

    Thread Starter travinum1

    (@travinum1)

    Evan, yes that little narrow strip of grey below the top navigation. Whatever would be easier, and Tyler I already registered the nav bar inside my header.php.

    Well you don’t need to register it in the header, you just need to call the menu inside the header-top like this.

    <div class="header-top">
       <?php wp_nav_menu(); ?>
    </div>

    Read this from the Codex that shows you how to use wp_nav_menu();
    http://codex.wordpress.org/Function_Reference/wp_nav_menu

    Thread Starter travinum1

    (@travinum1)

    Wait, where should I put that code? Tyler?

    Can you post the code from your header.php file?

    Thread Starter travinum1

    (@travinum1)

    Can I e-mail it to you? Tyler?

    Sure. [Email removed]

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘A secondary navigation bar?’ is closed to new replies.