WordPress.org

Ready to get started?Download WordPress

Forums

Possibe to customize html titles on home page only? (3 posts)

  1. jonestown
    Member
    Posted 9 years ago #

    I would like to know if it is possible to have my <title></title> tags display my site's tag line after my site name in my title tags--but just on my home page. I use the "optimal title" plugin and like it a lot. But optimal title just reverses the order of the post/page title and site title--it doesn't allow me to add my tag line after my site name on my home page. Right now my title tag in my header looks like this:


    <title><?php optimal_title(); ?><?php bloginfo('name'); ?></title>

    Any suggestions on how to add my tag line after my site name just on my home page?

    Thanks.

  2. Kafkaesqui

    Posted 9 years ago #

    <title>
    <?php optimal_title(); ?>
    <?php bloginfo('name'); ?>
    <?php if(is_home()) { bloginfo('description'); } ?>
    </title>

  3. jonestown
    Member
    Posted 9 years ago #

    Thank you Kafkaesqui!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.