Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #176052

    winterluke
    Participant

    Please help me with this problem Themeco. I’ve been trying to test my website pages with Structured Data Testing Tool by Google webmaster.

    The errors I’m getting are:

    Error: Missing required field “updated”.
    Error: Missing required hCard “author”.

    Website: http://www.teacherph.com

    Is this a theme problem?

    Related Article: https://wordpress.org/support/topic/google-structured-data-missing-required-field-authorship-thumbnails-gone

    Solution (did not work): http://websitetrafficincreaserguy.com/google-authorship-compliance-wordpress/

    Another Solution: http://fivera.net/hatom-feed-hatom-entry-error-wordpress-solution/

    Newly found one: http://www.davidtiong.com/fix-hatom-microformats-at-least-one-field-must-be-set-for-hatomentry/

    Another one: http://www.drafie-design.nl/correct-hatom-errors-in-google-webmaster-tools/

    Another: https://www.acceleratormarketing.com/trench-report/google-analytics-errors-and-structured-data/

    Please help me to make it compatible to X theme.. I am also using integrity child theme. Thanks!

    #176055

    winterluke
    Participant

    Quoting:

    Hi Support

    Schema markup is an important capability. An I suspect will only become more important. Please consider creating an extension to easily add markup.

    Thanks

    Tim

    I agree!

    #176351

    Rad
    Moderator

    Hi guys,

    Schema markup are added by default on X theme because they are needed of course for SEO purposes.

    Like on this thread https://theme.co/x/member/forums/topic/structured-data-hentry-missing-fields-forum-fix-not-working/

    Where the tools are looking data fields from carousel too, isn’t should be looking into places where schema and type are declared?

    Google webmaster tool now recognized .hentry as declaration of mircrodata, in which wordpress generate it automatically. Not all area needs to have microdata, specially if isn’t meant to be part of article like carousel. But because of .hentry added class, its like declaring that it should be treated as article.

    There is no need any extension to add markup, as those are generated from post title, published date, and author. Adding one is like re-adding the same title and etc.

    What really needed is solution for .hentry, which I think is it needs to be removed from other areas while retaining for real articles. I’ll forward your concern and stay tuned ๐Ÿ˜‰

    Thanks!

    #176460

    winterluke
    Participant

    Thank you for the information. I’ll be watching this thread. Can you provide me with a quick fix code? Like on this one: https://theme.co/x/member/forums/topic/structured-data-hentry-missing-fields-forum-fix-not-working/ I am currently using integrity child theme.

    #176479

    CharliePryor
    Participant

    Having this same issue on my site as well as several clients. I imagine they all have this exact problem, but only a few use webmaster tools at all and likely haven’t realized what to do here.

    I’d like to second the request for code like the post above me. In the future, perhaps a setting can be introduced someplace to help with placement here without messing with files directly. – Or, perhaps you know a worthy plugin that will help implement this with X reliably?

    Thank you for everything you do,

    Charlie

    #176632

    Zeshan
    Member

    Hi 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.

    After that, add following code at the end of 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() || 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 */
    

    Then add following CSS code under Custom > CSS in the Customizer:

    .hatom-extra {
       font-style: italic;
       margin-top: 10px;
       padding-top: 10px;
       border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    

    Hope this helps.

    Thanks.

    #176658

    winterluke
    Participant

    Great! working. thank you so much Themeco ๐Ÿ™‚

    Please do update us when this fix is incorporated on the next release of X. So we can revert back the changes that was made.

    #176720

    Paul R
    Moderator

    You’re welcome! ๐Ÿ™‚

    #182841

    Angela B
    Participant

    Hi,

    I’m not sure if I can re-open this thread but I followed the instructions above as I have the same issue on my site.

    I added the above code to my child-theme’s function.php file and updated the CSS in Customizer as per this post.

    However, in my particular situation, this meant that the information was displayed in the output on my page…is this what is supposed to happen?

    Thanks, Angie

    #183265

    Rad
    Moderator

    Hi Angela,

    Yes, it should output additional information from end of each of your post. Would you mind providing your url address, and if possible your admin login so we could check it further?

    You should also clearing your caching plugin’s cache if available after this change.

    Thanks!

    #187998

    winterluke
    Participant

    Just asking if this was included in the update today? Thanks!

    #188160

    Rubin
    Keymaster

    Hey There,

    This was not included in the latest update. If you need anything else let us know.

    #198918

    ignaciosantiago
    Participant

    I had followed the intructions, but i still get the error. Can you help me please? frenchiemania.com

    http://prntscr.com/6109of

    #199190

    Nico
    Moderator

    Hi Ignacio,

    Have you tried clearing your caching pluginโ€™s cache? Hope it works if not let us know.

    Thanks.

    #199520

    ignaciosantiago
    Participant

    I always clear cache and is still showing the error