-
AuthorPosts
-
May 2, 2018 at 2:35 pm #950073
Hi,
I had a look what Google say about rich snippets on my website and found some errors.
https://cloud.meischner.net/index.php/s/xNWewXNJqwaJCyp
https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fgemac-chemnitz.com%2Fen%2Fnew-sensors-homepage%2F
To fix that I installed the plugin “WP SEO Structured Data Schema” where I can enter data like this but anyhow, the errors are still there.
I think that I have to modify something at the theme but don’t know how to start.
Can you tell me what to do?May 4, 2018 at 4:45 am #951247Hey Ralf,
Thank you for using Enfold.
Did you switch to the advance layout builder? Please try this filter in the functions.php file to include the schema markup when the builder is activated.
add_filter('avf_template_builder_content', 'avf_template_builder_content_markup_mod', 10, 1); function avf_template_builder_content_markup_mod($content = "") { if(is_singular('post') ) { $markup = av_blog_entry_markup_helper(get_the_ID()); $content = $content . $markup; } return $content; }
Best regards,
IsmaelMay 4, 2018 at 9:02 am #951450Thank you Ismael,
yes, I use the advance layout builder.I tried that code in functions.php but it gives one more error on the testtool.
Best regards,
Ralf- This reply was modified 6 years, 6 months ago by Ralf.
May 4, 2018 at 10:12 pm #951916Hi,
Has that last one worked out?
Best regards,
BasilisMay 7, 2018 at 8:31 am #952534Hi Basilis,
unfortunatelly not. I have not less but more errors than before.
Regards,
RalfMay 8, 2018 at 6:28 am #953129Hi,
Odd. It should append the schema markup below the post. Please provide the login details in private field so that we could check it further. Create a test post/page if possible.
Best regards,
IsmaelMay 8, 2018 at 9:16 am #953248OK,
I made a test post for this. For details please refer to the private content.
Thanks for your help.
RalfMay 9, 2018 at 4:23 pm #954026Hi,
Thanks for the update. I can’t make the filter work so I installed the “Schema” plugin. I also disabled the previous plugin. (see private field)
Best regards,
IsmaelMay 14, 2018 at 9:21 am #956316Great!
Thank you Ismael.
This can be closed now.Best regards,
RalfMay 14, 2018 at 2:01 pm #956450 -
AuthorPosts
- The topic ‘Rich snippets errors’ is closed to new replies.