Solution for the “Logos” missing URL in Search Console (Yoast schema graph)
-
Hello,
I found out many people reporting that their Google Search Console says that the “Logo” schema require an URL, and it’s missing.
I had this issue in Author Pages.
For my part, I bet for a conflict (maybe) with the Starbox plugin (useful to show author box below the posts and author pages).
Info : in fact, the URL field must contain the URL of the Organization Homepage (not the Logo URL there)… Am I out of topic?
So…
Here is my code to solve this issue.
// Optional : Beautifier the Yoast Output Shema Graph : add_filter( 'yoast_seo_development_mode', '__return_true' );
Then…
We must be aware that, in Yoast Shema Graph, the URL is missing in the Organization Piece.
It can be reached by
add_filter( 'wpseo_schema_organization', 'wpseo_myfunc_add_organization_url_manually', 12 );
wpseo_schema_$CLASS
$ClASS seems that can receive these values :
organization, person, website, main_image, weboage, breadcrumb, article, author, faq, howto.
For example : wpseo_schema_authorFinally, I use this function for my filter, adding Organization URL in Author Pages :
function wpseo_myfunc_add_organization_url_manually( $data ) { if(is_archive()) { if ( is_author(1) ) // target the desired author / author page { $data['url'] = 'https://www.easyhoster.com/'; // define the homepage URL of your organization return $data; } } }
Pretty easy right?
Problem solved! We have our URL in the Search Console.
Google is happy.
- The topic ‘Solution for the “Logos” missing URL in Search Console (Yoast schema graph)’ is closed to new replies.