Tagged: x
-
AuthorPosts
-
December 25, 2016 at 5:28 pm #1304102
peterjonkerParticipantI get an error in my Google Search Console that my author, entry title and updated are missing in my hEntry. My website is http://www.fietsstoelexpert.com.
December 25, 2016 at 6:29 pm #1304130
DarshanaModeratorHi 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 Customizer, Custom > CSS area.
// 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.
December 26, 2016 at 2:36 am #1304360
peterjonkerParticipantHi Darshana,
Thanks for your quick reply. I Downloaded the child theme, installed it and posted the whole code as you mentioned above in my custom CSS.
Hope it worked (I’ll have to check my search console the coming days).
Thanks a lot!
December 26, 2016 at 2:47 am #1304368
ChristopherModeratorHi there,
Sorry, Darshana made a typo mistake. You should add provided code in child theme’s functions.php file not CSS.
So please remove it from customizer and add it in functions.php file.Thanks.
December 26, 2016 at 2:58 am #1304376
peterjonkerParticipantOke, no worries. Done!
December 26, 2016 at 3:05 am #1304380
ChristopherModeratorThanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1304102 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
