WordPress.org

Forums

Tagline not appearing on homepage (8 posts)

  1. Dustin Matlock
    Member
    Posted 3 years ago #

    My current setup displays the blog name after the post title, but the tagline doesn't appear on the homepage. I grabbed the piece of code (listed below) from this page, it' just doesn't include the tagline on the homepage, and I'm not too familiar with PHP. Any help is appreciated. Thank you!

    <title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title>

  2. Dustin Matlock
    Member
    Posted 3 years ago #

    So, is anyone able to help with this? Thanks again.

  3. JamiGibbs
    Member
    Posted 3 years ago #

    That line of code should work.

    Do you have an SEO plugin active or anything?

  4. Old Account
    Member
    Posted 3 years ago #

    I think hes talking about the where his "logo" is, the code you are adding adds a title( IE the title bar on your web browser) can you post your url

  5. JamiGibbs
    Member
    Posted 3 years ago #

    Actually, I don't think I read your entry correctly.

    You want to display the TAGLINE. The code you have there displays the TITLE and the website NAME. Not the tagline.

    The tagline is your website's description. It's displayed with the following:

    <?php get_bloginfo ( 'description' ); ?>

    So if you want all of the information in your title(title, name, and tagline), you should do something like:

    `
    <title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?> <?php get_bloginfo ( 'description' ); ?> </title>

  6. JamiGibbs
    Member
    Posted 3 years ago #

    Yeah, you're probably right Chris. Maybe we should figure out exactly what he's wanting to do.

  7. Dustin Matlock
    Member
    Posted 3 years ago #

    Hey guys, thanks for the replies. The code you posted for some reason does not show the description when at the homepage.

    This bit of code works for what I'd like:

    <title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title(''); ?></title>

    It just doesn't incorporate the

    wp_title('|',true,'right');

    part that seems to display the title of the page to the right when on a page or post. I've tried a few combinations of the two, but I'm not really familiar with PHP. Thanks, once again!

  8. Dustin Matlock
    Member
    Posted 3 years ago #

    Just curious if there was a solution to this. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic