WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Yoast 1.4.7 broke my WooCommerce shop meta description (7 posts)

  1. Gregory Karpinsky (@tivnet)
    Member
    Posted 1 year ago #

    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/

  2. Coen Jacobs
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. Gregory Karpinsky (@tivnet)
    Member
    Posted 1 year ago #

    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.

  4. Coen Jacobs
    Member
    Plugin Author

    Posted 1 year ago #

    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. :)

  5. Joost de Valk
    Member
    Posted 1 year ago #

    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?

  6. Gregory Karpinsky (@tivnet)
    Member
    Posted 1 year ago #

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

  7. nokia lumia
    Member
    Posted 9 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags