Tagged: x
-
AuthorPosts
-
January 4, 2017 at 9:26 am #1315881
Hello,
in Google Webmaster Tools I get error messages of missing hentry
(hentry (Markup: microformats.org))Following is missing:
auhor
updatedDoes this affect anything and how can I fix this?
Thank you very much for your help!
The URL is http://whiskytasters.de/
Regards,
AlexJanuary 4, 2017 at 10:04 am #1315953Hi there,
Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then add the following code into your child theme’s functions.php file.
// Fix "Missing Author" and "Missing Updated" issue - START // ============================================================================= add_filter( 'the_content', 'custom_author_code'); function custom_author_code($content) { if ( is_singular('post') ) { return $content . '<div class="hatom-extra hidden"><span class="title">'. get_the_title() .'</span> was last modified: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></span></div>' ; } else { return $content; } } // =============================================================================
Hope that helps.
March 8, 2017 at 1:19 am #1398732Hello,
I have added the code at the end of the functions.php of the child theme via FTP.
Hope that helps.
I think I have to wait untill Webmaster Tools refreshing the page.I´ll let you if it worked.
Thank you!
Regards,
AlexMarch 8, 2017 at 7:29 am #1399023Hello Alex,
Thanks for updating us. Yes, it will take sometime to generate new information again.
Feel free to open a new thread if you still have questions.
Cheers!
March 10, 2017 at 6:36 am #1401806Hello,
the information is still not showing. I still get the errors that following hentrys are missing:
author
updatedOr how long does Google need to get these entries?
Thank you very much!
Regards,
AlexMarch 10, 2017 at 9:40 am #1401995Hi There,
I believe it can take up to 72h.
Please contact us after that period.
Thanks
March 13, 2017 at 1:44 am #1404476Hello,
I have made the changes 5 days ago.
on all “pages” the “entry-title” is missing.
on all “posts” “author” and “updated” is missing.Hope you can help me!
Thank you very much!Regards,
AlexMarch 13, 2017 at 1:51 am #1404482little update:
on “pages” everything is missing: entry-title, author and updated
Regards,
alexMarch 13, 2017 at 2:37 am #1404506Hi there,
They aren’t missing, google only expects them in every declaration of hentry class. Even if it’s a banner, design, or a gallery and it has hentry then it will try looking for author/updated/entry-title, and etc. even if it’s not an article.
Wordpress adds hentry on every post class, the problem is posts aren’t used just for the blog, it can be used in a carousel, slider, and any other feature. The solution is removing the hentry, but that will also remove it from blog posts. The other solution is adding author/updated/entry-title as google wanted, but would you like visible text on your carousel, slider, and any other design aspect of your site? You can hide them, though, but then google will complain about hidden texts too.
Should we remove hentry? Or add those texts(author, updated, entry-title) on your site? This requires adding the author name, the publish date, and entry-title on every page and content, like on your home page. Not sure how it will look adding entry-title above or below the banner.
Please check this https://wpcolt.com/fix-hentry-errors-wordpress/
Thanks.
March 13, 2017 at 5:36 am #1404680Hello,
as I said I have added the code to the functions.php.
Now a line with entry date, author and post title appears at the bottom of every post.I do not know what you mean when you say that the data appears on carousel, slider, and any other features. It only appears at the bootom of the posts.
But in Google Webmaster there are still errors.
Do I have to save/updates the posts in WordPress backend?
Does that mean for Pages I can ignore the errors on Google Webmaster tools?
Thank you very much for your help!
Regards,
AlexMarch 13, 2017 at 10:01 pm #1405816Hello Alex,
Hiding content that google wish to see is against seo regulation. But could be done by adding this custom CSS.
Add this code at your customizer’s custom CSS:.
.hatom-extra.hidden { display: none; }
For pages hentry issues, you can update above code to this:
// Fix "Missing Author" and "Missing Updated" issue - START // ============================================================================= add_filter( 'the_content', 'custom_author_code'); function custom_author_code($content) { if ( is_singular('post') || is_page() ) { return $content . '<div class="hatom-extra hidden"><span class="title">'. get_the_title() .'</span> was last modified: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></span></div>' ; } else { return $content; } } // =============================================================================
I didn’t see error when I check your post page on google structure data testing.
Hope this helps.
-
AuthorPosts