Tagged: x
-
AuthorPosts
-
September 22, 2016 at 10:51 am #1186559
Hi there,
I submitted the site to google a while ago and noticed that about 30 pages have one of the following errors:
Missing: author
Missing: updatedor
Missing: author
Missing: entry-title
Missing: updateda few show these as a description of the error:
———–
hentry
itemtype: http://microformats.org/profile/hentry
entry-title: Home
entry-content: ENHANCINGYOUR BUSINESSLuxme products and services can help you increase profitability by improving the way you handle your products or materials. 580+INSTALLATIONS WORLDWIDE580+Installations5+Years…
updated: August 22nd, 2016
author
itemtype: http://microformats.org/profile/hcard
fn: admin
Use the Structured Data Testing Tool to check live data for errors.———–
There are 91 errors in total, which prevent the pages from being listed by Google. One of the pages is the home page.
A couple of the pages are portfolio pages, but most of them are not. How can I go about fixing this problem and having Google list all the pages?
Thanks!
September 22, 2016 at 11:21 am #1186611Hey There,
Thanks for writing in!
It’s a known error and 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 link textCustomization Best Practices.
Please add following code in 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() || is_single() || is_front_page()) { 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 */
Let us know how it goes!
September 22, 2016 at 12:10 pm #1186675Hi there,
I already have the X child theme setup, so I just added the code.
I’ll let you know how it goes as soon as Google crawls the pages again.
Will this also fix the “hentry” error?
Thanks!
September 22, 2016 at 12:21 pm #1186693Sure, let us know how this goes!
In the meantime, you can walk-through this thread for more information regarding entry-title error :
Hope this helps!
September 22, 2016 at 1:29 pm #1186787Hi there,
I added the code described in the thread you mentioned above.
I decided to run a test on a couple of pages using the “Structured Data Testing Tool” from Google and got the error attached (see image).
Tool: https://search.google.com/structured-data/testing-tool?hl=EN
Not sure if this is the best way to recognize whether or not the code you gave me works, but apparently, I’m still having the same issue.
This is one of the pages I tested: http://www.tubularchainconveyors.com/installations/
Any suggestions?
Thanks!
September 22, 2016 at 7:22 pm #1187146Hi There,
It is working here:http://www.tubularchainconveyors.com/portfolio-item/installation-33/
It is not working on this page:http://www.tubularchainconveyors.com/installations/ because that page doesn’t have an excerpt. It is portfolio listing page without excerpt.
To work on that page, please copy content-portfolio.php from \wp-content\themes\x\framework\views\integrity to \wp-content\themes\x-child\framework\views\integrity. Open the copied file and replace the content with the following.
<?php // ============================================================================= // VIEWS/INTEGRITY/CONTENT-PORTFOLIO.PHP // ----------------------------------------------------------------------------- // Portfolio post output for Integrity. // ============================================================================= $archive_share = x_get_option( 'x_integrity_portfolio_archive_post_sharing_enable' ); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-featured"> <?php x_portfolio_item_featured_content(); ?> </div> <div class="entry-wrap cf"> <?php if ( x_is_portfolio_item() ) : ?> <div class="entry-info"> <header class="entry-header"> <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1> <?php x_integrity_entry_meta(); ?> </header> <?php x_get_view( 'global', '_content', 'the-content' ); ?> </div> <div class="entry-extra"> <?php x_portfolio_item_tags(); ?> <?php x_portfolio_item_project_link(); ?> <?php x_portfolio_item_social(); ?> </div> <?php else : ?> <header class="entry-header"> <h2 class="entry-title entry-title-portfolio"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a> </h2> <?php if ( $archive_share == '1' ) : ?> <?php x_portfolio_item_social(); ?> <?php endif; ?> </header> <?php echo '<br><div class="hatom-extra"><span class="entry-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><br><br></div>'; ?> <?php endif; ?> </div> </article>
Then also add this custom CSS on Appearance > Customize > Custom > Edit Global CSS:
.hatom-extra .entry-title { font-size: 16px; }
Hope this helps.
September 23, 2016 at 7:30 am #1187836Hi there,
I modified the page and added the code as requested, but the error remains the same.
The error basically calls for the following information (using the tool):
author
datePublished
headline
publisherThe changes you recommended added these:
entry-title
updated
author vcardThe Analytics Report error says:
Missing: author
Missing: entry-title
Missing: updatedNot sure if the tool is misleading or accurate based on this.
What should I do?
Thanks!
September 23, 2016 at 5:37 pm #1188426Hi there,
That tool throws error anywhere it likes as long as Hendry class exist. Author metadata is supposed to be available only pages and articles, but it even throwing the same error on archive pages (listing).
Example, the page you’re trying to fix is an archive page, portfolio listing. Hence, you can ignore that error. Implementation on archive pages is different from above code.
Thanks!
September 26, 2016 at 7:16 am #1190739Hi there,
What do you mean by “Implementation on archive pages is different from above code.”? It there something I can do differently to fix the problem?
Also, why is the error occurring in pages such as the company page, the quote page, and the news page?
Thanks!
September 27, 2016 at 1:22 am #1191816Hi there,
Please update your code in child theme’s functions.php file to :
/* 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() || is_front_page() || is_archive() || is_page()) { 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 */
Hope it helps.
September 27, 2016 at 7:26 am #1192176Hi there,
I added the code and noticed it fixed a couple more pages, but still, the error appears in pages such as the Company page, Quote page, Installations page, and Contact page. I’ll wait until Google crawls the pages again to see if I see some improvements and get back to you.
If you can think of a possible solution for the pages mentioned above, that would be appreciated.
Thanks again!
September 27, 2016 at 9:06 am #1192309Hi there,
Just to confirm, there’s no SEO impact from this notifications. I have copied the response from the following post (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.
September 27, 2016 at 2:38 pm #1192801Hi there,
That might not be completely accurate based on the data I’m getting from Google. Some of the pages with errors haven’t been indexed yet, and they were all submitted a few months ago.
Besides, the errors I see are not related to “schema”, but to “hentry (markup: microformats.org)”, which seem to be completely different.
In my opinion, this is a theme issue that needs to be addressed in your next release. Some people won’t care or know about this, but those of us who want to see our sites ranking properly surely will.
Thanks for your help though!
September 27, 2016 at 11:07 pm #1193370Hello There,
You’re welcome!
This feature is under discussion to make the theme schema compliant. Although we can’t promise an ETA for the implementation. We will let you know once we have an update. Thank you for understanding.September 29, 2016 at 7:14 am #1195615Hi there,
FYI, the code you provided is fixing some of the errors I had. I went from having errors in 25 pages to just 14 pages. I’ll let you know if more of them are fixed as Google re-crawls the others.
Thanks!
-
AuthorPosts