WordPress.org

Ready to get started?Download WordPress

Forums

Description on title bar on homepage-HOW?? (2 posts)

  1. racerman28
    Member
    Posted 6 years ago #

    Hi,

    I'd like to put a description of my WordPress blog on the homepage only, followed by the blog title.

    Currently, it just shows the blog title on the homepage. I want to leave all the other pages alone.

    How would I do this?

    Thanks in advance!

    Kenneth

  2. BPartch
    Member
    Posted 6 years ago #

    This should work (if I understand):

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

    You may need to alter it a bit to get it to do exactly what you want.

    Hope it helps. :)

Topic Closed

This topic has been closed to new replies.

About this Topic