Viewing 12 replies - 1 through 12 (of 12 total)
  • I’m guessing you created a new Page called “Home” and set your home page to the static Page you created.

    If this is the case, then the navigation would show 2 tabs for home for this reason; The theme default links to the home page as a tab, then lists all of the blog’s pages as separate tabs. So since you created a page called Home, it appears to shows 2 tabs as Home.

    Try this: Edit your theme’s file: header.php. You should see some code where it shows something similar to this:

    wp_list_pages( );

    It probably has other parameters in the code, what you need to do is tell it to exclude a page. To do this you will need to add something to then end the code like this:

    wp_list_pages('sort_column=menu_order&title_li=&exclude=5');

    Where 5 is the page id you don’t want to show. To find the page id for your home page, login to your blog’s admin, go to the edit of the page and look at the URL in your browser’s address bar. You should notice that it has post=5. The number that it shows is your page’s ID.

    Update the code of your theme’s header.php file and you should now only see 1 home tab.

    Hope this helps!

    ~Anthony

    Thread Starter mmerril1

    (@mmerril1)

    there is no
    wp_list_pages( );

    code anywhere

    and when i paste the code in its makes another header.

    I think this is creating the header

    <?php if (get_option('ap_includeHome') == 0){ ?>
    
    			<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home') ; ?></a></li>
    			<?php } ?>
    Thread Starter mmerril1

    (@mmerril1)

    thank you for your help

    Thread Starter mmerril1

    (@mmerril1)

    does this make sense to anyone lol?

    I don’t think that the code you’ve provided above is what’s creating the navigation.

    Your navigation is contained between <div id=”tabs” class=”horizmenu”>

    Find that div tag and the closing one and look at the code in between. There should be something that looks like wp_list_pages.

    Thread Starter mmerril1

    (@mmerril1)

    <div id="tabs" class="horizmenu">
    
    			<ul>
    
    			<?php if (get_option('ap_includeHome') == 0){ ?>
    
    			<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home') ; ?></a></li>
    			<?php } ?>
    
    			<?php ap_buildMenu(); ?>
    
    			</ul>
    		</div>
    Thread Starter mmerril1

    (@mmerril1)

    i feel so helpless haha

    Thread Starter mmerril1

    (@mmerril1)

    that

    • is so confusing

    Good God, what template is this? Whoever wrote that code was not thinking of Keeping it simple.
    I think that (get_option(‘ap_includeHome’) is the one creating the home link, but I have no idea. Maybe try contacting the author of the template or just get rid of it altogether and use wp_list_pages.

    Thread Starter mmerril1

    (@mmerril1)

    lol

    what would that div look like normally?

    Normally the div tag would look like this:

    <div id=”tabs” class=”horizmenu”>

      <?php wp_list_pages(‘depth=1&title_li=’ ); ?>

    </div>

    I would try replacing what you have with the code above and then exclude whatever page you don’t want, like italianst4 explained.

    Thread Starter mmerril1

    (@mmerril1)

    ty

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘2 home navy tabs’ is closed to new replies.