Why won’t my title display in the browser tab?
-
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.
- The topic ‘Why won’t my title display in the browser tab?’ is closed to new replies.