• Resolved akawombat

    (@akawombat)


    I’m currently using this code to show my blog Name and post Title show up on the webpage.

    <title><?php wp_title(‘ ‘); ?>
    <?php if(wp_title(‘ ‘, false)) { echo ‘–‘; } ?>
    <?php bloginfo(‘name’); ?></title>

    Main Page looks like this: Blog Name
    Post page looks like this: Post Title — Blog Name

    I would like to know how to make my Main Page show up with my blog Name then Tagline like this:

    Blog Name — Tagline (then switch back to:)
    Post Title — Blog Name (for post pages)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Something like this, perhaps?


    <title>
    <?php
    if (is_single()) {

    wp_title('', false);
    echo '--';

    }
    bloginfo('name');

    if (!is_single()) {

    echo '--';
    bloginfo('description');
    }
    ?>
    </title>

    Let me know if that works, I haven’t tested it at all.

    Thread Starter akawombat

    (@akawombat)

    This works, except that the Post Title doesn’t show up on the post pages.

    it looks like this right now with that code:

    Blog Name — Tagline (then switch back to:)
    — Blog Name (for post pages)

    Thread Starter akawombat

    (@akawombat)

    Solved, thanks for the tip, I added a line to make it work just how I wanted it, thanks.

    <title>
    <?php
    if (is_single()) {
    wp_title(‘ ‘);
    wp_title(”, false);
    echo ‘–‘;

    }
    bloginfo(‘name’);

    if (!is_single()) {

    echo ‘–‘;
    bloginfo(‘description’);
    }
    ?>
    </title>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog Name, Title and Tagline sequence’ is closed to new replies.