Yoast SEO adding %% symbols before & after logo
The WordPress plugin is causing my site name to be displayed with 2 ‘%%’ symbols before and after the name.
Another user of my theme (Made Theme) identified an issue with the plugin and suggested a resolution which I have enacted but it hasn’t resolved all of the issues though it has resolved some.
When I deactivate the plugin the error goes away.
This is my reported SEO error:
Title is too long, it’s more than 70 chars!
title (86 chars, 16 too long)
%%www.whichinvestmenttrust.com%% » The Independent Investment Trust Analyst
Below is an issue someone else identified and resolved:
Re: Yoast SEO
Postby JackYu » Wed Sep 19, 2012 7:39 pm
In my eyes, Yoast is still the most awesome SEO plugin that I don’t want to miss. Getting this to work is actually no big deal:
Yoast hooks into wp_title() with a filter to change it and include SEO features. The Theme however, already includes a rather complex way to generate a title based on your sub-page. All you need to do is change:
<title> <?php //Print the <title> tag based on what is being viewed global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // 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', 'made' ), max( $paged, $page ) ); ?> </title>
<title> <?php wp_title( '|', true, 'right' ); ?> </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.]
This just replaces the made theme functionality with the standard WP function and leaves the rest to Yoast.
If you have any ideas or suggestions I’d love to know?
- The topic ‘Yoast SEO adding %% symbols before & after logo’ is closed to new replies.