2

Which file would I look in to add nofollow tags to my layered navigation?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
a1anm
  • 1,617
  • 11
  • 45
  • 78

3 Answers3

3

Found it:

/app/design/frontend/default/YOURTEMPLATENAME/template/catalog/layer

a1anm
  • 1,617
  • 11
  • 45
  • 78
1

Yes,like magento 1.4*,pp/design/frontend/default/base/YOURTEMPLATENAME/template/catalog/layer modify the filter.phtml,state.phtml to add nofllow tags. That is!

Mike
  • 11
  • 1
0

open or create app/design/frontend/<package>/<theme>/layout/local.xml and add the following XML information:

<catalog_category_layered>
    <reference name="head">
        <action method="setRobots"><meta>NOFOLLOW</meta></action>
    </reference>
</catalog_category_layered>
<catalog_category_layered_nochildren>
    <reference name="head">
        <action method="setRobots"><meta>NOFOLLOW</meta></action>
    </reference>
</catalog_category_layered_nochildren>

This will set NOFOLLOW to your meta tag robots in the head of the layered navigation page.

Justin
  • 84,773
  • 49
  • 224
  • 367
hans2103
  • 497
  • 4
  • 12
  • 1
    But... do you really want the searchengine not follow every link on the page? Or only the links in template/catalog/layer/filter.phtml ? I think you want the search engines to follow the page results but not the links in the filter. add rel=nofollow to the link in filter.phtml – hans2103 Dec 08 '11 at 14:02
  • this is **REALLY NOT** what OP wants. – DM8 Apr 30 '18 at 16:07