Magento Questions Answered By Magento Experts

 

Welcome Guest. Sign in or Signup

1 Answers

Under Category view how do I make all my item’s anchor text nofollow

Asked by: 863 views , , ,
Questions

Under Category view how do I make all my item’s anchor text nofollow?  I have 100 products and was just looking at the code and all of them are FOLLOW anchor text for the product name to take you to the product page! :( How to I turn all of these follow anchor text links into nofollow links so I can keep some of the link juice??

 

1 Answers



  1. Jon Martin on Oct 25, 2010 Reply

    I saw this on another forum about adding nofollow to drupal, which also uses PHP. At first I read that it is impossible to add nofollow to php code b/c rel=nofollow is for html only, however several places I saw people who were using the code below to make drupals php links nofollow..here is the code that supposedly works.

    <?php
    function phptemplate_menu_item_link($item, $link_item) {
      return l($item['title'], $link_item['path'], !empty($item['description']) ? array('title' => $item['description'], 'rel'=>'nofollow') : array('rel'=>'nofollow'), isset($item['query']) ? $item['query'] : NULL);
    }
    ?>

    Could this not be implemented on Magento as well???

    0 Votes Thumb up 0 Votes Thumb down 0 Votes


Answer Question