• I am using the following code to display the word Home if its the home page, else the page title for other pages, in my website. However on the home page I dont get the word ‘Home’ output, just blank space and the bloginfo(‘name’) details, what is the problem? Thanks

    BDW I have created a page named Home and set wordpress settings to point to this ‘Home’ page as the homepage of my site.

    <title>
    <?php if (is_home()) { echo 'Home'; /*bloginfo('description');*/ ?>
    &mdash;
    <?php } else { wp_title('',true); ?>
    &mdash;
    <?php } ?>
    <?php bloginfo('name'); ?>
    </title>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Problem in display of page title’ is closed to new replies.