- This topic has 9 replies, 4 voices, and was last updated 1 year, 5 months ago by
Tom.
-
AuthorPosts
-
January 27, 2021 at 3:15 am #1635321
Ivan
Hi,
When doing the structured data test with the Google tool, a total of 4 types of Schema appear, the two created by me (WebPage and LocalBusiness.) + CreativeWork (inside there is a nonsense text) and SiteNavigationElement.
I have read that they are from GeneratePress. Are important? Do they affect something?The website is https://emcolimpiezas.es
Thank you
January 27, 2021 at 9:54 am #1635971Tom
Lead DeveloperLead DeveloperHi there,
They can help Google understand your content better. However, in most cases, you’re better off using an SEO plugin with JSON-LD integration.
If you want to remove the structured data, you can do so with a simple filter:
add_filter( 'generate_schema_type', '__return_false' );
Hope this helps! 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 2, 2021 at 7:49 am #1643085Ivan
Hi Tom,
So do you recommend leaving them as they are? I have two more schemas (WebPage and LocalBusiness).
“You’re better off using an SEO plugin with JSON-LD” you mean a plugin like Yoast SEO (I already have this plugin). Is it better to use only said plugin?
February 2, 2021 at 11:24 am #1643344Leo
StaffCustomer Support“You’re better off using an SEO plugin with JSON-LD” you mean a plugin like Yoast SEO (I already have this plugin). Is it better to use only said plugin?
That is what Tom is saying 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 3, 2021 at 6:59 am #1644325Ivan
ok, but it is not clear to me, it is better to remove the Schemas from GeneratePress or it is better to leave them.
In case of removing them, where do I have to put the indicated filter?
February 3, 2021 at 7:39 am #1644375David
StaffCustomer SupportHi there,
if you’re adding your own scheme then its probably best to remove the Themes.
This article explains how to add the PHP Snippet that Tom provided:https://docs.generatepress.com/article/adding-php/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 5, 2021 at 6:51 am #1647065Ivan
I have asked Yoast SEO support and they have told me that I can leave the SiteNavigationElement as it won’t conflict with. Yoast SEO generated schema markup
I have also been told that I have to remove CreativeWork as WebPage is more spesific.
My question is, how can I delete only the CreativeWork schema?
February 6, 2021 at 10:11 am #1648399Tom
Lead DeveloperLead DeveloperYou can try this:
add_filter( 'generate_article_microdata', '__return_empty_string' );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 16, 2021 at 10:17 am #1660709Ivan
Hi,
Done! and sorry for answering now ..
Thanks,
February 16, 2021 at 11:01 am #1660763Tom
Lead DeveloperLead DeveloperNo problem! 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.