Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14983

    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?

    Thanks!

    #85758

    Hello,

    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.

    Regards,

    Ismael

    #85759

    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…

    Regards

    #85760

    Hi jslbs,

    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. :)

    Regards,

    Ismael

    #85761

    Worked like a charm. Thanks!!

    #85762

    Hi jsbls,

    Glad that I could help. :)

    Cheers,

    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Problems with head title’ is closed to new replies.