WordPress.org

Ready to get started?Download WordPress

Forums

How to change the title tag around? (4 posts)

  1. chaz7979
    Member
    Posted 8 years ago #

    This is kind of specific. Instead of the title reading;

    YOURSITE TITLE >> YOUR POST NAME

    I want it to read;

    YOUR POST NAME >> YOURSITE TITLE

    This is my current title tag statement
    <?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?>

    I guess I want to say if the page is index then display the site title else display post name title - site name. Instead of saying if the the page is single.

  2. tomhanna
    Member
    Posted 8 years ago #

    <?php if ( is_single() ) { ?>
    <?php wp_title(); ?>
    <?php } ?>
    <?php bloginfo('name'); ?>

  3. Kafkaesqui

    Posted 8 years ago #

    Another option is the Optimal Title plugin:

    http://elasticdog.com/2004/09/optimal-title/

  4. chaz7979
    Member
    Posted 8 years ago #

    That plugin worked good. I wished I saw that other post above....seems it would do the same thing with half the work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.