• Hi — I’ve searched high and low on the forums, and looked through my code but can’t figure it out. My tab title automatically picks up my page title (Welcome to BandPromo.me), but I want the tab title to be “Home”. Here’s the header code — I couldn’t see anything in here. I’m using “That Music” theme. Thank you!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title>
    <?php bloginfo('name'); ?>
    <?php if ( is_single() ) { ?>
    &raquo; Blog Archive
    <?php } ?>
    <?php wp_title(); ?>
    
    </title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <!-- leave this for stats -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/tabber.js"></script>
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_head(); ?>
    </head>
    <body>
    <div class="container_16">
    <div class="grid_16 blog_title">
    
    <!-- <h1><a href="<?php bloginfo('url'); ?>">
        <?php bloginfo('name'); ?>
        </a></h1>
        <h4>
          <?php bloginfo('description'); ?>
        </h4> -->
    
    <center>
    <script type="text/javascript"><!--
    google_ad_client = "pub-";
    /* 728x90, created 10/10/10 */
    google_ad_slot = "3150284296";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </center>
    
    <div class="grid_16 navigation">
      <ul>
    
        <?php wp_list_pages('depth=1&title_li='); ?>
      </ul>
      <div class="search_box">
        <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
          <div>
            <input type="image" src="<?php bloginfo('template_directory'); ?>/img/search_btn.gif" id="go" alt="Search" title="Search" class="search_btn" />
            <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="search_field" />
          </div>
        </form>
      </div>
    </div>
    
    <?php if(is_home()) :?>[<div class="grid_16 main_image"> </div>]  <?php endif;?>
    
    <div class="grid_16 content_wrapper">
    
    <?php if(function_exists('show_media_header')){ show_media_header(); } ?>
Viewing 9 replies - 1 through 9 (of 9 total)
  • Can you change the title to “Home”?

    Thread Starter PDXOR

    (@pdxor)

    Yeah, I could do that, but wanted to keep my content section title more personalized (welcome to bandpromo.me). If I change the page title to “home” the heading at the top of the content block changes to “home” too.

    I just changed this…

    <a title="Welcome to BandPromo.ME" href="https://www.bandpromo.me/">Welcome to BandPromo.ME</a>

    To…

    <a title="Welcome to BandPromo.ME" href="https://www.bandpromo.me/">Home</a>

    And it works without changing the heading at the top of the content block.

    Thread Starter PDXOR

    (@pdxor)

    Thanks, looks like that’s in the view source code on the page? Being the non-programmer I am, I don’t know how to get the revised code line back into the header.php file. I see now that the page source code follows the outline of the header file, but with extra code added in. I tried just adding your revised line in the appropriate place in the header file, but that doesn’t work.

    How do you revise the code and add to the header file? Thanks —

    “Theme/Editor” then click on “header.php” Lol, just kidding.

    Actually I don’t know how you’re generating the navbar; Is it a plugin, or an include?

    The navbar is in an unordered list that’s inside a div
    <div class="grid_16 navigation"> It might actually be in your header.php, but I can’t look at that file from here.

    Do you have file called “grid_16” or “grid_16 navigation”?

    Thread Starter PDXOR

    (@pdxor)

    Hi — the header is native to the theme. “grid_16 navigation” controls the row I’m trying to edit (navigation bar). I just dropped in your code above in several places, and it added an extra link in the nav row, but didn’t change the tab name.

    Here’s the section of code:

    <div class="grid_16 navigation">
      <ul>
    
        <?php wp_list_pages('depth=1&title_li='); ?>
      </ul>
      <div class="search_box">
        <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
          <div>
            <input type="image" src="<?php bloginfo('template_directory'); ?>/img/search_btn.gif" id="go" alt="Search" title="Search" class="search_btn" />
            <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="search_field" />
          </div>
        </form>
      </div>
    </div>
    Thread Starter PDXOR

    (@pdxor)

    I don’t think I answered your question completely — no, there is no separate grid_16 file.

    I saw that code before, and looked for a way around it, but I haven’t found one.

    It’s this bit right here that’s generating the menu items…
    <?php wp_list_pages('depth=1&title_li='); ?>

    I’m not that good with php, so I really can’t see a way to make it work using that code.

    Other than that…

    You can re-write the navbar to allow you to name each tab, or you can change the title of the page(the other pages have titles that work).

    You might even consider using a php include. That would give you control over naming the menu items, and make it easy to update/add new items to the navbar.

    Thread Starter PDXOR

    (@pdxor)

    Cool, thanks for your help. I’ll investigate doing a php include. Amazing how many rabbit holes there are to follow ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Make tab title different from page title’ is closed to new replies.