• Hi guys!
    So I’m using the latest version of WooCommerce and Yoast SEO Plugin.

    After 2 weeks, I realized, that the <meta robots> tag doesn’t show up on my pages.
    I set the cart and checkout pages to noindex,nofollow but it just doesn’t get printed within the <head>.

    I was wondering, if WooCommerce is overwriting the wp_head action or something and I found those 2 lines within woocommerce.php

    add_action( 'wp_head', array(&$this, 'generator') );
    add_action( 'wp_head', array(&$this, 'wp_head') );

    As you may know &$this means, that it’s overwriting the wp_head function itself. So that may be a point.

    the add_action() function comes up with a priority parameter, so you could define, which action will be loaded first.
    The default value is 10, the smaller values are getting loaded first.
    The Yoast SEO Plugin got the priority set to 1.
    I tried to set the WooCommerce priority to 0, but nothing changed.

    The “funny” thing is, that the sitewide settings like noydir are shown properly, but not the descriptions nor the page titles and descriptions defined within each site and product.

    Did I missed something? I hope somebody can help me with this issue, or even better, the WooCommerce team or Joost himself will take care of this issue ??

    thanks in advance!
    Daluxe

    https://www.ads-software.com/extend/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    &$this does *not* mean its overwriting the head itself.

    Those two lines simply hook two functions within the WooCommece class into the wp_head. &$this simply means the function is inside ‘this’ class.

    Any number of functions can be hooked into wp_head – they don’t overwrite one another. The only way to remove an action is to use remove_action

    The cause must be something else…

    Thread Starter Daluxe

    (@daluxe)

    thanks for your answer Mike.
    I just tried to change the settings within the wordpress seo plugin for article-archives, ’cause I saw, that it might be article archive type instead of a post type (talking about the shop main page), but nothing changed.

    Btw: you did a GREAT job with WooCommerce though ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] Yoast SEO Plugin doesn't work with WooCommerce’ is closed to new replies.