WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Rich Snippets for Products (8 posts)

  1. Jesper
    Member
    Posted 1 year ago #

    WordPress version: 3.4.2
    WordPress SEO version: 1.2.8.7

    I did this:
    Installed the plugin next to WooCommerce.

    I expected the plugin to do this:
    Leave the product pages alone. Or have an option to do this.

    Instead it did this:
    The author is added to the product pages, making the rich snippets not correct for products.

    How to get the right Rich Snippets for Products with WooCommerce?

    http://nijmegeneet.nl/winkel/jansberg-draagbare-wokset/

    Thanks!

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Jesper
    Member
    Posted 1 year ago #

    I had this code

    add_filter( 'wpseo_author_link', '__return_false' );

    added to

    woocommerce-hooks.php

    But then the author is still removed from all posts. Not only WooCommerce!?

    thanks

  3. Jesper
    Member
    Posted 1 year ago #

    I got this code from WooThemes to put in functions.php

    add_action( 'init', 'custom_remove_author_woocommerce' );
    function custom_remove_author_woocommerce() {
    global $woocommerce;
    
    if ( is_page() ) { 
    
    add_filter( 'wpseo_author_link', '__return_false' );
    }
    }

    But that does not work, because it removed the author of the whole site not only WooCommerce pages.

    Ideas?

    Thank you!

  4. JKNN
    Member
    Posted 1 year ago #

    Looking for the same.

  5. Jesper
    Member
    Posted 1 year ago #

    I think I found the right code to put in functions.php:

    function wpseo_disable_page_author_link( $link ) {
        if ( is_product() ) {
            return false;
        }
        return $link;
    }
    add_filter( 'wpseo_author_link', 'wpseo_disable_page_author_link' );
  6. hpgray
    Member
    Posted 1 year ago #

    Same problem but with WP ecommerce. Tried your most recent code in my functions.php and it stripped the authorship from the whole site, not just products. Hmm...

  7. littlesthobo
    Member
    Posted 1 year ago #

    Hi Jesper. Any update on this?

    I'm struggling with products rich snippets my my woocommerce site. I just get the author image and not the product image.

  8. dEM0nsTAr
    Member
    Posted 1 year ago #

    What about the publisher tag?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic