• Google webmaster tools returns 3 errors at structured data section.

    The theme lacks from entry-title, author and updated hatom-feed data.

    I’ve managed to resolve this error with this code on my child theme functions.php

    // Fixing rich snippets for hatom-feed at hatom-entry
    	//add hatom data
    function add_hatom_data($content) {
        $t = get_the_modified_time('F jS, Y');
        $author = get_the_author();
        $title = get_the_title();
    if (is_singular()) {
            $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_hatom_data');

    This link explains it all

Viewing 6 replies - 1 through 6 (of 6 total)
  • Awesome! Thanks for sharing.

    curlingdan

    (@curlingdan)

    I’m getting the same problem right now. Does this fix applies to all themes? I’m using Sidewinder.

    Did you see the problem go right away when you went back to google webmaster or you had to wait for a couple of days?

    Thanks,

    Thread Starter miguelcortereal

    (@miguelcortereal)

    It should work for most of the themes lacking these structured data.

    The best would be to report on your theme’s support forum these GWT errors so that they get resolved in further updates.

    If done the right way the problem will take one or two weeks to disappear.

    curlingdan

    (@curlingdan)

    Thanks, I’ll check with the support team of this Theme.

    Hi curlingdan,

    Please meet our support team and have great support from here: https://themegrill.com/support-forum/forum/spacious-free/

    rmckibben

    (@rmckibben)

    I had to wait until the next time Google indexed my site. I think it took a couple of days but yes this fix did work for me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Hatom data markup from microformats.org’ is closed to new replies.