add a menu to the top bar

Support Area Forums Foxy add a menu to the top bar

Viewing 11 posts - 1 through 11 (of 11 total)
URL to the page in question: http://branchesrecoverygifts.com/
  • Author
    Posts
  • #19355
    Avatar photoDurenda Wood
    Participant

    Good morning Bill!

    I am wondering if you know a way to add a menu to the top black bar of the pages or a widget that I can add to get that to happen?

    #19361
    Bill Robbins
    Moderator

    Durenda,

    You can do that with a bit of editing. Here’s essentially what you’ll need to do:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose header.php and find this spot:
      
      <?php get_template_part( 'layouts/header-links' ); ?>
      
    3. Right above that, add this:

      Be sure to copy that code from the support site and not the notification email.

      Save your changes.

    4. Next edit the functions.php, scroll down to the bottom and add this:


      Again copy that from the support site and not the notification email.

    5. Save your changes.

    You will need to add in some CSS to style the menu. Probably at the very least, you’ll need to add something like this:

    
    #header-menu ul {
    	margin: 0;
    	list-style-type: none;
    }
    
    #header-menu li {
    	float: left;
    	margin-right: 10px;
    }
    

    See if that doesn’t get you started in the right direction.

    Have fun,
    Bill

    #19390
    Avatar photoDurenda Wood
    Participant

    Hello Bill,

    I followed your directions to the t and the menu is not showing up on top.

    #19391
    Bill Robbins
    Moderator

    Durenda,

    Make sure you disable all caching while developing a site.

    Bill

    #19392
    Avatar photoDurenda Wood
    Participant

    It was enabled, Should I disable it and redo everything and then enable it?

    #19393
    Bill Robbins
    Moderator

    I would leave it disabled until you’re completely finished. That usually works best.

    #19397
    Avatar photoDurenda Wood
    Participant

    Hello Bill,

    I disabled the cache and then I updated the three pages and I cleared cookies and it still isn’t showing up. Sorry I didn’t do it right!

    #19398
    Bill Robbins
    Moderator

    Did you create a new navigation menu and assign it to the new location you created?

    #19399
    Avatar photoDurenda Wood
    Participant

    LOL, no that wasn’t in the instructions! 🙂 I will be back and report in!

    #19400
    Avatar photoDurenda Wood
    Participant

    It worked! Thanks Bill!

    #19403
    Bill Robbins
    Moderator

    Fantastic 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘add a menu to the top bar’ is closed to new replies.