Author Topic: Nofollow for images of products in category  (Read 7392 times)

ateusz

  • Beginner
  • *
  • Posts: 3
    • catering warszawa
Nofollow for images of products in category
« 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,

JoanC

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: Nofollow for images of products in category
« Reply #1 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/