data markup from microformats theme Error

Home Forums Support data markup from microformats theme Error

Home Forums Support data markup from microformats theme Error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #192154
    Joanne Smith

    hi
    re: SEO – Google is saying the THEME is not set up correctly for data markup from microformats (( its a wordpress issue too ))

    hatom
    SiteNavigationElement
    CreativeWork
    WPHeader
    WPFooter
    WPSideBar
    Blog
    WebPage
    Review

    and I saw a fix for another theme how could I apply this fix to your theme refer below ??

    ######

    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 .= ‘

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

    ‘;
    }
    return $content;
    }
    add_filter(‘the_content’, ‘add_hatom_data’);

    This link explains it all

    #192164
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The theme is actually fully set up with all of the necessary schema tags.

    For example: https://developers.google.com/structured-data/testing-tool/

    Add in a GP site, like http://speedtest.generatepress.com (under the Fetch URL) section.

    You’ll see in there everything is set up and ready to go 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.