Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to remove the site-name from title post and used All in One SEO and this is the configuration

enter image description here

but in Google search the site name display in all title post ( as this )

enter image description here

How can I remove sitename from title post?

share|improve this question

2 Answers 2

If this problem is not caused by your theme, then you are doing this right.

Now when you set %post_titile% go to any post and check source code. If you get what you want under titile tag, then you are good to go. All you have to do now is to wait for google bot to visit your site and collect new informations from your posts.

share|improve this answer

Check your theme (header.php). If it uses something like this :

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

You can use this filter :

add_filter( 'wp_title', 'wpse104667_wp_title' );
function wpse104667_wp_title( $title ) {

    global $post;
    if(
       is_singular() 
       && !is_front_page() 
       && !is_home() 
       && !is_404() 
       && !is_tag()
     )
    $new_title = get_the_title($post->ID) ;
    return $new_title;
}

EDIT: add conditional tags to avoid bad conflicts

share|improve this answer
    
please where i put this code –  user2075379 Jun 29 '13 at 11:25
    
in a file called functions.php –  JMau Jun 29 '13 at 11:31
    
but found problem when i click on categories . its remove categories name and display the first post title alternate categories name –  user2075379 Jun 29 '13 at 15:02
    
true ! missed that, I'm editing –  JMau Jun 29 '13 at 17:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.