PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

no-follow in meta for SEO

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi Pablo/RealMag,

I just completed a review with my SEO agency and I need to change the meta content to no-follow when using woof.

I couldn't find how to do this, can you enlighten me?

Thanks!

Stéphane

Hello Stéphane

An  example:

add_action('wp_head','hook_add_your_meta');
function hook_add_your_meta() {
global $WOOF;
if($WOOF->is_isset_in_request_data($WOOF->get_swoof_search_slug())){
        $output='your meta';

echo $output;

}

}

Hello Pablo,

Thanks!
I was able to solve it using your code and Yoast SEO. I copy the code for info:

add_filter( 'wpseo_robots', 'yoast_seo_robots_remove_swoof_filter' );

function yoast_seo_robots_remove_swoof_filter( $robots ) {
global $WOOF;
if($WOOF->is_isset_in_request_data($WOOF->get_swoof_search_slug())){
//return false;
return 'nofollow';
} else {
return $robots;
}
}

Hello

Great!  thank you for  cooperation!

Hi Pablo,

The SEO Agency just came back with another comment.

On the products filter sidebar e.g. https://zazou2020.test.tk/age/0-24-mois/

The links should be no-follow. How can I make this happen?

Thanks!

Hello

I didn't understand you! What links?

Hello Pablo,

All the links on the left sidebar (Woof Filter) (so in this example, the product categories):

https://zazou2020.test.tk/age/0-24-mois/

See attached: https://www.evernote.com/l/AVgpWkg9bolGlL_SOFhXHrYmOaACDBZP-2I

in file  - \plugins\woocommerce-products-filter\js\front.js - add  code  - https://c2n.me/48RN2XG.png

and  do  a test  please

Thanks! I just tried but the links are actually labels not links so the nofollow is not applied there. I'll check again with the SEO agency as I'm confused now.

Hello

Ok! I'm waiting for your answer

Me too ;-)

The agency just came back confirming they're ok in the end to leave it like this as they're not links. Thanks!

Ok! Welcome;)