• https://www.authorsupportcoop.com . veryplaintxt theme

    my REAL ‘home’ page was renamed ‘At your service’ and its permalink is my URL – no matter what i seem to do – even if i try to make a new page for it and transfer the data to the new page. ???

    i get a ghost ‘home’ tab on the navigation bar. at first it was two ‘home’ tabs. when i renamed the ‘home’ page, then there was the home page (AYS) and the ghost ‘home’ which links to the AYS page.

    the ‘home’ tab disappears when you are at the ‘at your service’ page BUT if you go to any other page on the navigation bar, then ‘Home’ shows again…

    in the code below, at one point, i replaced ‘Home’ with ‘at your service’ and then i had two ‘at your service’ tabs. what i include below is where i believe the problem lies but i only write very simple html and i don’t want to damage anything.

    it might be a good idea for me to know where ‘home’ is programmed if it’s not here… is it in the WP codex???

    Theme Functions (functions.php)

    <?php
    // Produces links for every page just below the header
    function veryplaintxt_globalnav() {
    echo "<div id=\"globalnav\"><ul id=\"menu\">";
    if ( !is_front_page() ) { ?><li class="page_item_home home-link">/" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?>" rel="home"><?php _e('Home', 'veryplaintxt') ?><?php }
    $menu = wp_list_pages('title_li=&sort_column=menu_order&echo=0'); // Params for the page list in header.php
    echo str_replace(array("\r", "\n", "\t"), '', $menu);
    echo "</div>\n";
    }
  • The topic ‘Two "Home" tabs in navigation bar’ is closed to new replies.