No follow affiliate link

Hi there
Is it possible for the links to be nofollow? If so, how?

Thanks

Hello,

The easiest way would be to install a plugin that makes links nofollow.

Thanks, but is there a way I can do it manually only for the affiliate links?

Sure. Open up the content.php and content-product.php files. Search for this:


<a href="<?php echo esc_url($cfs->get('button_link')); ?>" class="buy-button" target="_blank" rel="nofollow"><?php echo esc_html($cfs->get('button_title')); ?></a>

and replace with this:


<a href="<?php echo esc_url($cfs->get('button_link')); ?>" class="buy-button" target="_blank" rel="nofollow"><?php echo esc_html($cfs->get('button_title')); ?></a>

Perfect, thanks did both and worked like a charm :slight_smile:

One more question, awaiting reply on https://athemes.com/forums/topic/dark-bg-on-mobile/