Tagged: x
-
AuthorPosts
-
July 19, 2016 at 3:51 pm #1094162
Marcos MParticipantHi,
I’ve already fixed this issue once already, but recently updated and it resurfaced. I looked at some of the other threads where they ask to update the child theme functions.php file. I’m having trouble finding it. When I look in Framework>Views>Integrity I’m not finding the functions.php. I think the last time I fixed it I updated the parent themes functions.php which probably why it reverted post update. I was hoping you could help me fix it so when I run updates I don’t break it again.The site is http://www.lalabee.com.br I will follow up admin log credentials in a private post in the next comment. Thanks!
July 19, 2016 at 3:53 pm #1094164
Marcos MParticipantThis reply has been marked as private.July 20, 2016 at 12:07 am #1094781
ChristopherModeratorHi there,
Please remove the code from parent theme’s functions.php file.
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.
Please connect to FTP and find functions.php file under wp-content/themes/x-child.
Hope it helps.
August 16, 2016 at 8:41 am #1133520
Marcos MParticipantHello again. I finally got around to looking at this again.
I have set up the child theme and added this code to the function.php of the child theme/* Fix “Missing Author” and “Missing Updated” issue – START */
add_filter( ‘the_content’, ‘custom_author_code’);function custom_author_code($content) {
if (is_singular() || is_single()) {
return $content .
‘<div class=”hatom-extra”><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;
}
}
/* Fix “Missing Author” and “Missing Updated” issue – END */also added this to the custom CSS
.hatom-extra {
font-style: italic;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid rgba(0, 0, 0, 0.08);
}But google’s structured data testing tool… Can you check it out to see what I’m missing? Thanks!
August 16, 2016 at 10:58 am #1133722
DarshanaModeratorHi there,
Just to confirm, there’s no SEO impact from this notifications. I have copied the response from the following post since it is private (https://community.theme.co//forums/topic/seo-4/#post-303547).
I am one of the lead persons of Themeco and want to clarify this situation. Our support team gave you help of something which originally should not be supported by us. X does not support schema markup and therefore Google is triggering these “warnings” – This has no impact on your search engine optimization nor anything else. Schema is just a markup that is optional and enabled you to structure data. Due to the fact that this problem was new to our staff they tried to help you with the issue although it’s something out of the scope of support. I hope you understand that addressing this would be a huge undertaking and outside on what we can provide and if you have any other problems or questions related to X feel free to ask me at any time.
Thank you for understanding.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1094162 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
