VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Security (https) / Performance / SEO/ SEF issues VM 1.1 => Topic started by: ateusz on December 20, 2012, 02:38:07 am

Title: Nofollow for images of products in category
Post by: ateusz on December 20, 2012, 02:38:07 am
Hello,
I would like for images of products in each category to add rel="nofollow". Which file I should edit?

Thank you for your help,
Title: Re: Nofollow for images of products in category
Post by: JoanC on August 26, 2015, 15:13:36 pm
If you want to add rel="nofollow" to the Image Hyperlinks, simply add this to your theme’s functions.php file:


1.add_filter( 'soliloquy_output_link_attr', 'tgm_soliloquy_rel_nofollow' );
2.function tgm_soliloquy_rel_nofollow( $attr ) {
3.     
4.    return $attr .= ' rel="nofollow"';
5.     
6.}

Joan from http://www.domyhomework4me.net/