Forums

[resolved] How to swap blog title and post title order? (4 posts)

  1. JG99
    Member
    Posted 2 years ago #

    Like this?
    `<title><?php wp_title();
    if ( is_single() )
    _e('» Blog Archive');
    bloginfo('name'); ?></title>`

    or like this?

    `<title><?php if ( is_single() )
    _e('» Blog Archive');
    wp_title();
    bloginfo('name'); ?></title>`

    And if I wanted simply a pipe | between the two, rather than Blog Archive, how would I accomplish that?

    Thank you for your help!

  2. vtxyzzy
    Member
    Posted 2 years ago #

    Give this a try:

    <title><?php if ( is_single() )
    wp_title();
    echo '|';
    bloginfo('name'); ?></title>
  3. JG99
    Member
    Posted 2 years ago #

    Thank you!

  4. vtxyzzy
    Member
    Posted 2 years ago #

    You are welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic