Home>Support>Vantage premium hentry problem

Vantage premium hentry problem

Google Search Console is picking the following Structured Data errors (hentry) for seven of my URL pages:

Missing: author
Missing: updated

I understand that these errors affect my Google ranking. Does SiteOrigin have a fix for these errors? Help much appreciated. I’m very new to all of this.

Thanks,
Will

URL: https://www.willwrightmedia.com

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi Will

    Thanks for reaching out.

    My understanding is that structured data is intended for syndicated content which are blog posts in WordPress and not static pages. If you create a blog page with posts, post meta will contain all of the information you’ve referred to.

    If you wanted to, you could use a child theme to introduce a page title and author info to your static pages. But, as far as I understand, this isn’t the intended application of the structured data testing tool as static pages aren’t content for syndication. To do so each page would need to display the page title and the author, it doesn’t work to add the info at a code level and then hide it using CSS. Google dismisses it.

    This looks to be the last time I looked at the problem:

    https://siteorigin.com/wp-content/uploads/2015/08/vantage-child-google-auth-august-2015.zip

    To try the child theme, download the ZIP, install from Appearance > Themes > Add New: Upload Theme. Activating a child theme will cause the Customizer and menu locations to reset, that’s expected and a normal WordPress core result of activating a child theme.

  2. 8 years, 10 months ago Eldo A. Pradana

    Andrew, I have the same problem here. I’m trying your child theme and yes all my setting are reset. After that, should I activate vantage premium theme again or just walk through it (I mean now I’m working in the child theme)? If so, should I replace my google analytic code that I place in my vantage premium?

    • 8 years, 10 months ago Eldo A. Pradana

      Another question, there is an option to hide my side bar in a post (not a page) when I use live theme customize but that option will make side bar hide forever. Is there any way so I can hide side bar just in some post?

      • 8 years, 10 months ago Andrew Misplon
        Hi, I Work Here

        Hi Eldo

        We’d like to help you, but can you please start a new thread with your question? We can only offer you the best support possible when you’re the owner of a thread.

        Page: New Thread

        If you’re a premium user, please be sure to enter your order number so we can properly prioritize your thread.

        If you post the link to your new thread here once it’s open, I’ll be happy to help.

  3. 8 years, 10 months ago willwrightmedia

    Thanks for the quick reply, Andrew. I’m not sure what you mean by the following:

    ‘Activating a child theme will cause the Customizer and menu locations to reset, that’s expected and a normal WordPress core result of activating a child theme.’

    I’m just worried that I’ll lose all of the work that I’ve done on the website. Perhaps I’ve misunderstood what you meant by the customizer and menu locations resetting. Again, sorry this is all very new to me.

    I’ve been searching around the internet for some solutions to hentry problems. One post suggests that you can add the following to the end of the functions.php:

    /* Remove Hentry
    /* ———————————— */
    function remove_hentry( $classes ) {
    $classes = array_diff($classes, array(‘hentry’));

    return $classes;
    }
    add_filter( ‘post_class’, ‘remove_hentry’ );

    Another post suggests that you can add the following to functions.php:

    /**
    * Only use ‘hentry’ for post types with author and published date
    */
    function remaintenance_remove_hentry( $classes, $class, $post_id ) {
    $hentry_post_types = array(
    “post”
    );

    $post_type = get_post_type( $post_id );

    if ( !in_array( $post_type, $hentry_post_types ) ) {
    $classes = array_diff( $classes, array( ‘hentry’ ) );
    }

    return $classes;
    }
    add_filter( ‘post_class’, ‘remaintenance_remove_hentry’, 10, 3 );

    Would either of these ‘solutions’ work in my case?

    Finally, I understand that I can access the Vantage Premium functions.php from:
    dashboard – appearance – editor; make sure your theme is selected; then click functions.php in the list on the right.
    –> suggested in

    Many thanks for all of your help, Andrew. By the way, I really like this theme that you’ve developed :)

    Thanks,
    Will

  4. 8 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi Will

    Finally, I understand that I can access the Vantage Premium functions.php from:
    dashboard – appearance – editor; make sure your theme is selected; then click functions.php in the list on the right.

    This isn’t great advice. All WordPress themes completely overwrite themselves during the theme update process. Please, don’t make any changes from Appearance > Editor unless you have Vantage Child activated. If you make any edits via Appearance > Editor and we then push a theme version update and you run that update, any changes you’ve made at Appearance > Editor to the parent theme would be lost.

    I’m just worried that I’ll lose all of the work that I’ve done on the website. Perhaps I’ve misunderstood what you meant by the customizer and menu locations resetting. Again, sorry this is all very new to me.

    When you activate any child theme in WordPress the following happens:

    1. Appearance > Menus > Menu Locations. All locations reset. No menu will be allocated to the main menu position. You’d need to proceed to Appearance > Menus > Menu Location and re-assign your custom menu to the main menu location. No work lost, just the setting.

    2. Appearance > Customize > Theme Design. All settings go back to default. If you switch back to the main Vantage theme your settings will still be there but they won’t carry to the child theme. You’d need to redo Customizer > Theme Design settings with the child theme activated.

    3. You’re welcome to try the PHP snippet you mentioned but it needs to be inserted into the functions.php file of the Vantage Child theme. Note that even a small syntax error in functions.php will cause your site to white screen. It can be resolved. No work will be lost.

  5. 8 years, 10 months ago willwrightmedia

    Thanks, Andrew. It all worked out great.

  6. 8 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Super :) Glad to hear you’ve made progress.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More