Support » Plugin: WooCommerce » Yoast 1.4.7 broke my WooCommerce shop meta description

  • Just wanted to tell that until I installed WPSEO 1.4.7 today, I was happily managing meta descriptions with
    add_filter('wpseo_metadesc' ....)
    Now, in addition to that, I had to use
    add_action('wpseo_head' ....
    and echo the meta there
    So, now I have two hooks: one for /shop/page/…, because Yoast doesn’t want meta description on “paged”, and another one – for the /shop/ itself, after the 1.4.7 upgrade.

    My code is working OK now, but all this is quite ugly… I know that you guys already have a Yoast fix in WC_Query::wpseo_metadesc(). I guess, there will be more like this now.

    Otherwise – WooCommerce is great. Thank you!

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • What code are you talking about? Is this a custom piece you’ve made?

    If anything, I think this is a problem with the WordPress SEO plugin and not with WooCommerce, right?

    I am talking about the code in WooCommerce that fixes Yoast. When the “Products” (shop) is on the front page, Yoast does not know how to handle it, and WC fixes it by rooting Yoast to the proper page.
    Then, the problem remains, because Yoast leaves all /page/2/ /page/3/ of the Products with no meta description. He explicitly says if “paged” then return, instead of printing <meta.

    Obviously, it’s a Yoast problem. However, because you already trying to adjust to WC Yoast, same as you adjust to default WP themes, I thought you should re-check that part of code. That’s all.

    // Fix WP SEO
    if ( function_exists( 'wpseo_get_value' ) ) {
    add_filter( 'wpseo_metadesc', array( $this, 'wpseo_metadesc' ) );
    add_filter( 'wpseo_metakey', array( $this, 'wpseo_metakey' ) );
    }

    Thanks!

    P.S. As we speak, there is a piece in WC code that does not have any hooks. It’s the widgets (recent products, random products, etc.). I do not think there is a way to do any customization there…

    P.P.S. All “Products” pages display the same title, “Products”. I am using a post_type_archive_title filter to change it, because I could not find any WC hook.

    Thanks, now I understand what you mean. I’ve just created an issue on our issue tracker about this change. We need to investigate a little more.

    If you need any extra filters or actions, goes for both issues, you can always open an issue in our issue tracker on GitHub, to see how we can work it out. You can also contribute by providing a pull request, if you like. 🙂

    First of all, having the same meta description on paginated pages fires of warnings in Google Webmaster Tools, that’s why I don’t allow meta descriptions to exist on paginated pages. That’s not new behavior, it’s been the case for quite some time. I fail to see why you’d want that?

    @joost de Valk:
    Yes, it’s not new.
    Having empty meta description is also bad.
    What I did was add “paged” to the end of description and title. That helps.
    In this specific case, the “Products” being on front page paginates and shows more and more products. I believe that without letting Google index all those pages, SEO will suffer (speaking from experience). So, I’d like to have them all “index, follow”, with title and description.

    P.S. – Metas and Titles page with WooCommerce installed, in my opinion, needs some additional checking. “Pages”, “Products” and “Custom Post Type Archives” – they all become one thing when WooCommerce Products are displayed on the front page… OpenGraph is also affected, I think.

    To change the meta title for the woocommerce shop page when use yoast wp plugin, you can do this from po and mo language files, use poedit and change the “products” name
    See my exemple: Magazin Online Nokia Lumia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Yoast 1.4.7 broke my WooCommerce shop meta description’ is closed to new replies.