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

    Schema – how to turn off all insertions of creative work?

    #229383

    Hi aribann!

    Add this on functions.php:

    add_filter('avf_markup_helper_args','avf_remove_markup_helper_args'); 
    
    function avf_remove_markup_helper_args($args) {
    	$args = array_merge(array('context' => '', 'echo' => false, 'post_type' => ''), $args);
    	if(empty($args['context'])) return;
    }

    Regards,
    Ismael

    #229648

    would that turn off http://schema.org/CreativeWork only?

    #229924

    Hi!

    It will remove all the schema markup. You can also try this, edit js > avia.js, find this code on line 5:

    $(document).ready(function()
        {
    

    Below, add this code:

    $(".main_color, .alternate_color, a, img").removeAttr("itemtype");
    

    Regards,
    Ismael

    #233500

    Thank you
    I went with turning it all off via functions.php.
    We will see how Google responds.

    If you folks can add actual Schema control to elements via page Avia Builder that would be brilliant …and usable to all beyond what they realize.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Schema – how to turn off ?’ is closed to new replies.