New Landing How can we help? Themeforest Theme Support Supreme It's possible to remove | on the browser title ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Supreme
  • #26421
    zast
    Member
    Post count: 23

    Hi,

    in the browser I have “mysite | my article title”.
    Google use this title to reference article πŸ™
    It’s possible to remove mysite | and keep only my article title or I must use Yoast ?

    Thank you

    #26769
    Melanie – SUPPORT
    Member
    Post count: 11032

    In header.php find

    <!--// SITE TITLE //-->
            <?php
                global $page, $paged;
                echo "<title>";
                // Add the blog name.
                bloginfo( 'name' );
                wp_title( '|', true, 'left' );
                // Add the blog description for the home/front page.
                $site_description = get_bloginfo( 'description', 'display' );
                if ( $site_description && ( is_home() || is_front_page() ) )
                    echo " | $site_description";
                // Add a page number if necessary:
                if ( $paged >= 2 || $page >= 2 )
                    echo ' | ' . sprintf( __( 'Page %s', 'swiftframework' ), max( $paged, $page ) );
                echo "</title>";
            ?>
             

    Remove all the |Β you want to be removed πŸ™‚

    #26770
    Melanie – SUPPORT
    Member
    Post count: 11032

    PS: don’t remove the || tho only the single |Β that are green in the code above.

    #27164
    zast
    Member
    Post count: 23

    Thank you.
    On the Home page, I add the blog title. But I don’t add the blog title in the article page.

    if someone wants to do the same, here is my code (I think it’s good for SEO πŸ˜‰ ) :

    global $page, $paged;
    			echo "<title>";
          wp_title( ' ', true, 'left' );
    			// Add the blog description for the home/front page.
        			$site_description = get_bloginfo( 'description', 'display' );
    			if ( $site_description && ( is_home() || is_front_page() ) )
    		  	{bloginfo( 'name' ); echo " | $site_description";}

    .

    #27326
    Cosmin – SUPPORT
    Member
    Post count: 3851

    WP SEO plugin by Yoast takes care of all these aspects very easily.

    Regards,

    β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

    Cosmin
    Support Assistant

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register