If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hi, I’m having an issue that’s been bugging me out.
In the header.php file, i have this line:
<title><?php bloginfo(‘name’); ?> | <?php is_home() ? bloginfo(‘description’) : wp_title(‘Home’); ?></title>
Which should render Home/blog description on the front page and the post/portfolio title on single pages, however, on the front page i get nothing (SITE TITLE | ), and on all the other pages i get SITE TITLE | Home SINGLE PAGE TITLE.
Why is this happening? I tried to modify the if statement, but can’t seem to get it right. Any help?
Did you set Settings > Reading > Front page displays > Static page? If so please reset it then on Theme Options select the page that you want to be as home page.
Hi, thanks for the quick reply.
I did have Settings > Reading > Front page displays > Static page set… however, I reset it, then selected my front page on theme options, and the problem persisted…
Kindly change your title code:
<title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title('Home'); ?></title>
To the default code:
<title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title(''); ?></title>
I think the homepage is already fixed as I can see this in the title: Jaime Smeke Balas :: Diseño Interactivo | Diseño Web, Diseño Interactivo, Redes Sociales y Experiencias Multimedia
However, in other pages, The page/post title is always preceded by Home, just like: Jaime Smeke Balas :: Diseño Interactivo | Home Carteles El Ingenio
The above code only resolves the page/post title is always preceded by Home. Hope this is helpful. :)
The topic ‘Problems with head title’ is closed to new replies.