Support » Theme: Azera Shop » Structured Data > hentry (markup: microformats.org)

  • Resolved norwood451

    (@norwood451)


    Hi
    This is recent in that Google Webmaster tools is showing an error that I am missing the AUTHOR and the UPDATED in all of my posts

    According to https://kb.yoast.com/kb/fixing-hcard-author-error/

    Are you getting the Missing required hCard “author” or similar hEntry / microformat error in Google’s structured data testing tool (live results) or in Google Search Console (cached results)? This is an issue with your theme

    Warning: Updating your theme may remove the changes you have made to core theme files. For that reason, we recommend contacting your theme developer to request a permanent fix to this issue.

    Yoast recommends that I contact the theme developer to request a permanent fix to this issue.

    However, it also says that I can chance the Locate the call to the_author(); in your theme’s single.php file – WHICH I did, but there is not Author entry in this file, so I cannot change what is not there.

    In some cases, you may simply want to remove hEntry completely until your theme is updated. By adding this code to your theme’s functions.php file you will remove hEntry from being inserted into your posts. This will remove the structure of hAtom which in turn removes the hEntry data.

    <?php
    /**
    * Remove ‘hentry’ from post_class()
    */
    function ja_remove_hentry( $class ) {
    $class = array_diff( $class, array( ‘hentry’ ) );
    return $class;
    }
    add_filter( ‘post_class’, ‘ja_remove_hentry’ );

    Additionally, Yoast says I can turn off the hentry, See above but using a code,

    but since this is your theam – and going back to the warning I thought it would be a good idea to check with you.

    Thank you for your reply. Love you Theme. Azera Shop

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Structured Data > hentry (markup: microformats.org)’ is closed to new replies.