WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Site title and Page title are not separated - Why? (7 posts)

  1. videoinvolver
    Member
    Posted 12 months ago #

    How can I separate the page title and site title with a space. No matter what in the "Titles and Metas" and in the "General Settings" i cannot get a space between them. That can't be good for SEO, can it? See the problem in the title here: http://www.videoinvolver.com

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Dylan85
    Member
    Posted 11 months ago #

    Your title appears to be display twice.

    In this instance you could remove the %%sitetile%% and it won't display twice, since the plugin automatically pulls the site title from the general settings as well

  3. seacap8
    Member
    Posted 11 months ago #

    I have the same problem. How do I stop the plugin from naming my pages for me?

    where do you find %%sitetitle%%?

    TIA

  4. videoinvolver
    Member
    Posted 11 months ago #

    All I need is a space between the site title and the page title. JUST A SPACE. Please YOAST people! Just a space! how?

  5. gokulphp
    Member
    Posted 11 months ago #

    check your function.php file with following code

    function twentytwelve_wp_title( $title, $sep ) {
    
    	global $paged, $page;
    
    	if ( is_feed() )
    
    		return $title;
    
    	// Add the site name.
    
    	$title .= get_bloginfo( 'name' );
    
    	// Add the site description for the home/front page.
    
    	$site_description = get_bloginfo( 'description', 'display' );
    
    	if ( $site_description && ( is_home() || is_front_page() ) )
    
    		$title = "$title $sep $site_description";
    
    	// Add a page number if necessary.
    
    	if ( $paged >= 2 || $page >= 2 )
    
    		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
    
    	return $title;
    
    }

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    remove this lines from your function file... Problem fixed

  6. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    No! For starters, you should never edit the Twenty Twelve theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. So you would need to create a child theme for your changes.

  7. gokulphp
    Member
    Posted 11 months ago #

    I just given you example code to edit. I didnt mean in twentytwelve theme. You may used this function in your function file of your theme. I mean to check that.

Reply

You must log in to post.

About this Plugin

About this Topic