Viewing 11 replies - 1 through 11 (of 11 total)
  • Please wrap code on barticks if short or use pastebin for long lines of code.

    Thread Starter longsmalls

    (@longsmalls)

    ok. I think I did this right. Here is a link to the pastebin

    https://pastebin.com/tQV1wR2P

    Thread Starter longsmalls

    (@longsmalls)

    I think what I really need to know about is

    <div class="inner-container">
    <div id="header">
    <div id="logo">
    <img src="<?php bloginfo('template_url'); ?>/images/logo.png" />
    </div>
    
    <div id="nav"> <!-- Navigation -->
    
    <?php wp_list_pages('orderby=menu_order&title_li=&depth=1&include=4,6,8,10,12,14,80,119,159,448'); ?>
    </div>
    <div id="social-nav"> <!-- Navigation -->

    I can’t figure out how to get to where I need to in order to edit the nag bar. I want to add a tab to the “home”,”Specs”,”about” etc..

    Not sure who made your theme but it is using wp_list_pages, and specifying to list only the pages with id’s of 4,6,8,10,12,14,80,119,159,448 all on the top (no subs).

    <?php wp_list_pages('orderby=menu_order&title_li=&depth=1&include=4,6,8,10,12,14,80,119,159,448'); ?>

    If you hover over a page title in the list of pages you have, then look at the bottom of the screen, you will see a long url string. In it is the page_id. You can modify the menu using the page id’s wanted.

    That said, you would have an easier time of this if your theme supported a custom menu.

    Thread Starter longsmalls

    (@longsmalls)

    Thanks! I actually just figured it out right before your post! A great sense of achievement! I agree with the custom menu…. thats the next hassle. I have tried to do (due to coming across it several times in searches), but I keep getting a weird code when i update the file about… something with pluggable… have to try again.

    Check with theme provider for custom menu support. If the theme does not include custom menu support you can add it per the link I provided.

    Thread Starter longsmalls

    (@longsmalls)

    I am trying to add it but this is what i get when trying to add the 2nd part to my header.php.

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/7861603/html/2011/wp-content/themes/catchthismusic2013/functions.php:101) in /home/content/03/7861603/html/2011/wp-includes/pluggable.php on line 896

    I have tried to get rid of spaces.

    That means you have a problem at line 101 of functions.php

    Post functions.php at Pastebin for further review.

    Thread Starter longsmalls

    (@longsmalls)

    https://pastebin.com/X6wCyKMt

    I just entered the first code at the end of the page. I think I am suppose to rename certain parts of the function but it wasn’t very clear to a noob like me where i should be looking for that.

    Thread Starter longsmalls

    (@longsmalls)

    i think i fixed it… at least… getting rid of error… I inserted a space before ?> I also corrected before function from ?> to <?

    Thread Starter longsmalls

    (@longsmalls)

    yea boy… now i have every page as a tab :)… working on removing them now

    appreciate the help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘editing #nav containers — adding a tab/link in header – nav bar’ is closed to new replies.