[Plugin: WooCommerce – excelling eCommerce] Yoast SEO Plugin doesn't work with WooCommerce
-
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
- The topic ‘[Plugin: WooCommerce – excelling eCommerce] Yoast SEO Plugin doesn't work with WooCommerce’ is closed to new replies.