Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1170872

    Hi guys,

    Something happened to the Schema markup. The Cookie consent is marked as WebPage but it has a BlogPost property and it throws 16 errors and more warnings.

    Here’s the first error: The property blogPost is not recognized by Google for an object of type WebPage

    And one screenshot: Schema Testing

    I turned off the Cookie Consent message but I am still getting this. Please, help!!

    Thank you!!

    Havi
    PS: Happy 2020!!!

    #1171010

    Hey havi,

    Thank you for the inquiry.

    Is that the home page? We didn’t find any errors in it when we tested it in the structured data testing tool.

    Best regards,
    Ismael

    #1172322

    Hi Ismael!

    Actually, it doesn’t happen on the pages but on the blogs. Pick any blog post and it throws the error.

    Sent you a link on the Private Content Section

    Thank you!!

    Havi

    #1172684

    Hi,

    Thank you for the update.

    Try to add this snippet in the functions.php file to unset the itemtype attribute of the body tag in the single post pages.

    
    function avf_markup_helper_attributes_modified($attributes, $args) {
    	if( $args['context'] == 'body' && is_singular('post') ) {
    	    unset($attributes['itemtype']);
                unset($attributes['itemscope']);
    	}
    
    	return $attributes;
    }
    add_filter('avf_markup_helper_attributes', 'avf_markup_helper_attributes_modified', 10, 2);

    Best regards,
    Ismael

    #1173560

    Hi Ismael!

    It did remove the markup for the cookie consent but a new one showed up.

    Before code:

    before new code

    After adding code to functions.php
    after code

    Thank you!!

    Havi

    #1173774

    Hi,

    Thank you for following up.

    We are getting the same set of errors when we ran the staging site in the tool. Can we have access to the site? Please post the login details in the private field. And make sure that the Appearance > Editor panel is accessible.

    Best regards,
    Ismael

    #1174723

    Hi Ismael,

    Sending them your way!!

    Thank you!

    Havi

    #1174825

    Hi,

    Thank you for the info.

    It seems to be an issue with the privacy tabs. We replaced the filter in the functions.php file with the following code.

    function avf_markup_helper_attributes_modified($attributes, $args) {	
    	if(is_singular('post')) {
    		if( ( $args['context'] == 'body' || $args['context'] == 'entry' ) && $args['custom_markup'] != 'article') {
    			unset($attributes['itemtype']);
    			unset($attributes['itemscope']);
    			unset($attributes['itemprop']);
    		}
    	}
    
    	return $attributes;
    }
    add_filter('avf_markup_helper_attributes', 'avf_markup_helper_attributes_modified', 10, 2);

    Please edit the includes > loop-index.php file, look for this code around line 144:

    echo "<article class='".implode(" ", get_post_class('post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false).">";
    

    Replace it with:

    echo "<article class='".implode(" ", get_post_class('post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false, 'custom_markup' => 'article')).">";
    

    This should remove the markup in the privacy tabs.

    Best regards,
    Ismael

    #1175169

    Hi Ismael!

    It worked like a charm! Should I create a folder called includes on the Child Theme and drop the modified loop-index.php file in there? Or do we want this to stay only until the next Enfold release?

    Thank you!!

    Havi

    #1175736

    Guys,

    Markup cannot be tested and getting a search console error: Logo missing url on markup.

    I’m removing the changes from the live site but you can see them on the staging site.

    Reviewed further and it seems to happen only on this post – also, the sidebar shows up on the bottom?: https://staging-conversionsciencesdev.kinsta.cloud/visualizing-your-marketing-and-sales-process/ (happens both on the live and staging sites)

    Havi

    • This reply was modified 4 years, 10 months ago by havi. Reason: Found more info
    #1176136

    Hi Ismael,

    Do I have to apply the exact same fix to all of the sites I manage? I think this is a bug.

    My other sites do not have staging areas so I will not update Enfold for them. I don’t want to ruin the markup. I also found some kind of hiccup on the live site and got a notification from Search Console “no Logo” seems to happen only on this post where the sidebar shows up on the bottom?: https://staging-conversionsciencesdev.kinsta.cloud/visualizing-your-marketing-and-sales-process/ (happens both on the live and staging sites same post)

    Please help!

    Thank you!

    Havi

    #1176178

    Hi,

    Thank you for following up.

    Reviewed further and it seems to happen only on this post – also, the sidebar shows up on the bottom?: visualizing-your-marketing-and-sales-process/

    Did you enable the schema markup option of another plugin (e.g Yoast)? The markup with the error is not generated by the theme.

    Reviewed further and it seems to happen only on this post – also, the sidebar shows up on the bottom?: visualizing-your-marketing-and-sales-process/

    We found a lot of html code in the page, so it is possible that there are unclosed or invalid tags in it. Please check the markup and make sure that all tags are closed properly.

    Also, if possible, please open a new thread for additional inquiries so that we can close this thread and keep it relevant to the original topic.

    Best regards,
    Ismael

    #1180119

    Hi Ismael!

    Yes, you were right. That was the first thing I did (clean up that code) but I missed one div. Back to the original topic: Do I have to apply the exact same fix to all of the sites I manage? Or was this fixed on 4.7.2?

    Thank you!!!

    Havi

    #1180204

    Hi,

    You don’t need to add the above fix or filter in the next release because an actual patch is going to be included there. Unfortunately, we don’t know exactly when it will be released.

    Thank you for understanding.

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.