-
AuthorPosts
-
March 1, 2015 at 3:59 pm #217933
Hi,
Like many others I’ve recently found in my webmaster tools that I’m missing “key” structured data. Having spent many months building my site, I’ve got to say this is extremely disappointing. Is it a theme issue? WordPress? Was it something I did?
There are several other threads on this forum with partial solutions suggested but it’s tough to work through and I’m hoping there’s a consensus. In fact, I can eradicate the author/updated errors using code you provided but now my site has got “last updated on XYZ by admin” all over it which is not aesthetically pleasing or of any value to the reader whatsoever. Mine is not even a blog and the information is timeless so who cares?
Do you have any wise words of advice? My site is http://www.unmask.us. Is this just more of the Google monster going crazy?
Thanks, NeilMarch 2, 2015 at 1:48 am #218154Hi Neil,
WordPress integrates Google authorship once the user add a Google+ link in his profile. Now, according to your post above, you got “last updated on XYZ by admin”. You can at least assign a nice name in your user profile and WordPress will use that one in displaying the data. You can also create another user as an author and assign it to your other pages.
You may want to check out Google Authorship Compliance in WordPress article. The article might explain Google Authorship within WordPress thoroughly.
Thank you.
March 2, 2015 at 4:07 pm #218751Hi,
Thanks, this helped address the authorship puzzle but what about the errors associated with missing: entry-title?
Rgds, Neil
March 3, 2015 at 9:05 am #219286Hi Neil,
In regards to your entry title missing, we could not guarantee answers as of now, would you mind sending us some information, maybe some screenshot about the issue. Thank you so much.
Cheers!
March 3, 2015 at 9:29 am #219309March 3, 2015 at 2:47 pm #219514Hi there,
Thanks for writing in! Please refer to the following post on how to resolve that (https://theme.co/x/member/forums/topic/structured-data-testing-tool-by-google-webmaster/#post-176632).
Hope that helps.
March 3, 2015 at 3:56 pm #219579Sorry but that post is relating to the problem of missing author and updated. This problem is related to missing entry-title.
March 4, 2015 at 3:16 am #219924Hi There,
With regards to the missing: entry-title, we’ve investigated your site. For example on this page, http://www.unmask.us/songwriters-n-p/, it has a page title “Songwriters (N-P)” and it has a class .entry-title in it. The homepage doesn’t have any page title and you are using a page template with no container with header and footer.
Will you please try this workaround and see if it works for you.
//add hatom data function add_suf_hatom_data($content) { $t = get_the_modified_time('F jS, Y'); $author = get_the_author(); $title = get_the_title(); if (is_home() || is_singular() || is_archive() ) { $content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; } return $content; } add_filter('the_content', 'add_suf_hatom_data');
Thank you.
March 5, 2015 at 10:28 am #220994Hi,
I added this and test it using the Goggle rich snippets tool and all is good! Thanks you so much.
Best, NeilMarch 5, 2015 at 4:44 pm #221290Glad we were able to help 🙂
August 31, 2015 at 6:23 pm #374902Hello ThemeCo Staff
I found the same issue ‘entry title’ missing because, like Neil Hartley, I’m using the NoContainer/NoHeader/NoFooter template. But, where do I put the (hatom) code above?
Thanks.
LukeSeptember 1, 2015 at 12:17 am #375156Hi there,
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.
Add provided code in child theme’s functions.php file.
Thanks.
September 1, 2015 at 4:09 am #375371Thanks for your fast reply.
I’m not familiar with setting up Child Themes, and would rather choose themes that are ready-to-use straight out of the box. Any idea when you plan to add missing entry-title as a permanent ‘fix’ to the X Theme?
Thanks again.
LukeSeptember 1, 2015 at 4:26 am #375383Hey.
I put the code to ‘fix’ the missing entry title (I’m also using the blank container and header and footer template), cleared my website’s cache, and Google Structured Data tool shows good result complete with Entry Title. Hopefully, this could be included in a near future update to the X Theme?
Cheers.
LukeSeptember 1, 2015 at 3:00 pm #375864Hey Luke,
We certainly appreciate the feedback! We’ll forward your request to our development department. This way it can be taken into consideration for future development.
Thanks!
-
AuthorPosts