Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #278845

    Hello,

    Accordion Sider by default marks up all links as a “Blog” schema.org. That is incorrect and BAD SEO practice in case where the images link to pages and the Google Data Structure Tool produces an error since it cannot find the author name for the creative work, which is not included in pages, only on blog posts.

    On another thread where I pointed this out, Dude suggested that “Page” schema.org should not be used twice in the same page and that a filter should be used to remove the schema.org markup from the element.

    First I think that this is an issue that should definitely be addressed in the next update and second until this is addressed in an upcoming update, how can I filter out the schema.org/Blog from the Accordion Slider element when images link to pages?

    Thank you very much for the help,
    George

    #278846

    Hi sdbroker!

    Actually you’re mixing things up. schema.org will not trigger an error if the author is missing. Only the hatom markup breaks but we did not add any hatom markup to the accordion. You can test the markup with this page here: http://test.inoplugs.com/code/http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Ftest.inoplugs.com%2Fcode%2F – no errors. We won’t change it for now because I see no substantial proof for your argument and I do not agree with it.

    You can remove the markup with this code – insert it into the child theme functions.php file:

    
            add_filter('avf_aviaccordion_config', 'avia_change_accordion_config', 10, 1);
            function avia_change_accordion_config($config)
            {
                $config['custom_markup'] = "no_markup";
                return $config;
            }
    
            add_filter('avf_markup_helper_args','avf_remove_markup_helper_args', 10, 1);
            function avf_remove_markup_helper_args($args) {
                if($args['custom_markup'] == "no_markup") $args['context'] = '';
                return $args;
            }
    

    Cheers!
    Peter

    #278849

    Hi Dude,

    Thank you for the snippet, it works perfectly!

    I don’t think that I’m mixing things up. I tested the page with the Google Structure Tool (same tool you used on the above link) and I got the Error: Missing required field "name (fn)". under the https://schema.org/creativework field.

    I guess it depends what you include in the schema.org. I’m testing the Accordion Slider to eventually use it to display community information and real estate listings which include schema.org “place”, “singlefamilyresidence”, “postaladdress”, “offer”, and similar real estate specific schema.org. Now when the slider defaults to “Blog” & “creativework”, the rest of the real estate specific schema that I use on the description gets markup errors since as you know there’s no creative work involved with just stating location & listing info.

    So, yes… I completely understand what you are saying but there are certain instances where the default markup produces errors when used in conjunction with additional markup related to specific type of information. Does that make sense?

    Thank you for the snippet above! It really helped a lot, not only to remove unwanted markup from elements but also as a helper on how to automatically add or replace markup on other elements.

    Cheers,
    George

    #278850

    Hey!

    You can customize the markup with the existing hooks – i.e. I published some code here: http://kriesi.at/documentation/enfold/customize-schema-org-markup/

    Regards,
    Peter

    #278853

    Oh, there’s some great info on the above link. Thank you so much for publishing & posting this Peter!

    Have a great weekend,
    George

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Accordion Slider – Remove Default Incorrect Schema.org Marcup’ is closed to new replies.