Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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?

    #951247

    Hey 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,
    Ismael

    #951450

    Thank 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, 7 months ago by Ralf.
    #951916

    Hi,

    Has that last one worked out?

    Best regards,
    Basilis

    #952534

    Hi Basilis,
    unfortunatelly not. I have not less but more errors than before.
    Regards,
    Ralf

    #953129

    Hi,

    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,
    Ismael

    #953248

    OK,
    I made a test post for this. For details please refer to the private content.
    Thanks for your help.
    Ralf

    #954026

    Hi,

    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,
    Ismael

    #956316

    Great!
    Thank you Ismael.
    This can be closed now.

    Best regards,
    Ralf

    #956450

    Hi Ralf,

    Thanks for the feedback. I’ll close this thread for now, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Rich snippets errors’ is closed to new replies.