Support » Fixing WordPress » Switching Blog Title with Post Title

  • Currently my blog shows my titles like so…

    Blog title | post title
    Blog title | Tag Line

    I want it to be like

    Post title | Blog title
    Tag Line | Blog Title

    my site is how do i do this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m guessing your theme has something like this in header.php or single.php

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

    Swap them round:
    <title><?php wp_title(); ?> | <?php bloginfo('name'); ?> </title>

    Better still, get Headspace 2 from Urban Giraffe which allows you to type in the <title> </title> that you want as you write the post. Search Engines and humans want different titles – humans want eye-catching tabloid stuff, search engines want literal stuff

    You should find the following code in your header.php file inside your themes folder.

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

    Simply swap the php functions around so it reads

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

    This should swap them around.

    Ok tried what you guys said but on my main page it doesn’t include the tagline… only the blog title..

    Also for the posts for example like this one

    it puts a >> at the beginning how do I get rid of the “>>”

    Thanks for the help!

    I did some more messing around with it and still cant figure it out..

    It would be pretty helpful for you to show what you have in header.php between the <title> tags.

    <?php wp_title(''); ?> will remove the double arrows

    As a multiple post page, there’s no post title. If you mean description by ‘tag line’ then use <?php bloginfo('description'); ?>

    Really, for the index.php template you should hardcode your <title></title> in as so many people link to the home page and you want it to rank in the SEs e.g. <title>Internet marketing with pizzaz! HPKMedia blah blah blah </title>


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Switching Blog Title with Post Title’ is closed to new replies.