• I have a little problem. Ever since I updated my blog to 2.3, my title for my page won’t show up on the homepage. Every other page works fine using this in the header file: <title><?php wp_title(''); if (function_exists('is_tag') and is_tag()) { ?>Tag Archive for <?php echo $tag; } if (is_archive()) { ?> archive<?php } elseif (is_search()) { ?> Search for <?php echo wp_specialchars($s,1); } if ( !(is_404()) && (is_search()) or (is_single()) or (is_page()) or (function_exists('is_tag') and is_tag()) or (is_archive()) ) { ?> | <?php } ?> <?php bloginfo('name'); ?></title>
    What’s even weirder is that I tried to force the title of my Blog to show in the browser tab by trying these different functions and/or text by making my home php file include a 2nd version of a header file I made…In other words I copied the header file, made a file called header2, and replaced everything between the title tags with things such as: “Spiewgel’s Discussion Forums”; <?php bloginfo('name'); ?>; <?php wp_title(''); ?>; “Testing”; etc. No matter what I put, once I reload the page and look at my page source the title tags remain empty AND the browser tab still shows: https://spiewgels-labyrinth.com/blog/

    This seems like such a weird problem to have and I can’t see how the update did this nor why I can’t “force” a title tag onto my home page. Any gurus out there that can offer some hints. This is a very strange problem, indeed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Ravi

    (@ravidreams)

    i have the same problem too..s omeone help pleae

    I, too, have just developed this problem after installing/activating a plug in called Reading Now. My favicon also disappeared. I deactivated it and deleted it from my server.

    I closed and reopened the browser and got the favicon back but even rebooting does not change the home page display on the tab. It just displays my url on the homepage, not my blog name as it used to. All other pages seem to be fine.

    The first post in this thread is over my head – help, please, in simpler langugage. Thanks in advance.

    Thread Starter spiewgels

    (@spiewgels)

    Sorry for all of the “garbage” in my post, I just figured there was some guru out there that might be able to tell me why this very common conditional statement wasn’t working after the update of my blog to 2.3.2. In my theme presentation under Presentation -> Theme Editor in the admin section my pages decide what to put in the header by referencing back to the header.php file. While that long code that I put up will display posting titles, archives, and searches, etc it no longer will show the title of the blog name, which is given by <?php wp_title('')that’s in the very beginning of that code. What I merely was stating after that was that I tried the various functions in place of that which will also show the blog title, along with even trying to “force” the title to show by changing my home.php file to erase all of that garbage and just put: <title>Spiewgel's Discussion Forums</title>. Even when I change the file to say this, when I load the page again a title still refuses to be acknowledged on the browser tab, nor does it acknowledge that I changed the title to this when you look at the page source. It’s really quite baffling but considering other problems that I’ve had to fix, this is minimal and I’m sure with more complaints of this someone will find out what the culprit is. It’s most definitely not the theme, though, because I tested other ones. It only happened with the update.

    Thread Starter spiewgels

    (@spiewgels)

    I hope this helps out everyone else…I’ve been messing around with things and realized a very simple fact: After upgrading I didn’t toggle with the options for a plugin that I previously installed called, All in One SEO. As common sense would dictate, I needed to fill out the options form for this again and Voila!!! the title shows back up. I don’t know if your problems are the same but if you have some plugin that’s used for optimizing the ability for your site to be found, have better meta tags, etc. then this is probably culprit that needs adjusting.

    Ravi

    (@ravidreams)

    thanks Spiewgels. Updating SEO plugin helped me too !

    Thread Starter spiewgels

    (@spiewgels)

    No problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Why won’t my title display in the browser tab?’ is closed to new replies.