• Hi there,

    I have the following errors in the google Search console.
    Structured Data error in Search Console, missing author, updated

    only for the indexed pages not for the posts.

    Any idea.

    I’m using the 1.45 version of the theme.

    Thanks for your help.

    Catherine.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter catheg

    (@catheg)

    I found this in the google forum :
    http://swampsidestudio.com/remove-wordpress-hentry-class/

    Do you think it could be the problem and the solution for the Sydney theme ?

    What are the consequences if the hentry class is removed for pages in Sydney theme ?

    Thanks for your answer.

    Catherine.

    Hello there,

    I tried removing it with this code as suggested in that article.

    
    function themeslug_remove_hentry( $classes ) {
        if ( is_page() ) {
            $classes = array_diff( $classes, array( 'hentry' ) );
        }
        return $classes;
    }
    add_filter( 'post_class','themeslug_remove_hentry' );
    

    It doesn’t break the page styles and functionalities. If got any problem with it, please let us know.

    To apply extra functions to your site, I’d recommend you use child theme‘s functions.php file or a functionality plugin like Code Snippets.

    Regards,
    Kharis

    Hi Kharis,
    I am also on Sydney 1.45 and receiving these errors.
    Is there a chance that this change could be incorporated in the next version of Sydney?

    Thanks,
    Jay

    Hi, This morning I received the same search console errors. Structured Data 8 pages, 8 errors All missing Author and Updated

    I’m using Sydney’s Child Theme. Here’s two of the pages:
    https://bostudio121.com/senior-pictures/
    https://bostudio121.com/blog/

    Please advise. Thanks.

    Bumping this request to find a fix, please. Thank you.

    Hello there,

    I’ve added it to our list of future update plan. Our developer will be working to address it. Please be patience.

    Regards,
    Kharis

    I have had this issues for years. Across multiple websites and multiple themes. No solution has ever worked.

    For the missing author, I updated my child theme. I had to find everywhere that the_author_posts_link() or the_author() was used. Copy them over to your child theme if you have one. This was the code on my site:
    Change this
    <span class=”posted-author”><?php the_author_posts_link(); ?></span>
    to this
    <span class=”posted-author vcard author author_name”><span class=”fn”><?php the_author_posts_link(); ?></span></span>

    The updated error may be a little trickier since I don’t think it’s used in my theme. I’ll just have to add it. The solution should be similar.

    Hi Kharis….

    This error still exists, I hoping you can give me a status update on when it will get fixed? Google doesn’t seem to be happy with these errors. 🙂 Thanks in advance!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Structured Data error in Search Console, missing author, update’ is closed to new replies.