Support » Fixing WordPress » Title tag on index page and single pages

  • How do use just the Blog name in the title meta tag and if it’s a single page then just use the post’s title? I do not want to have the blog name on any single pages.

    Here’s what I’m suing now:
    <?php bloginfo('name'); ?> <?php if ( is_single() ) { ?><?php wp_title(); ?><?php } ?>

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Title tag on index page and single pages’ is closed to new replies.