a1anm
a1anm

Reputation: 1629

Magento Store - Add nofollow to Layered Navigation

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

Upvotes: 2

Views: 3554

Answers (3)

hans2103
hans2103

Reputation: 496

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.

Upvotes: 0

Mike
Mike

Reputation: 11

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!

Upvotes: 1

a1anm
a1anm

Reputation: 1629

Found it:

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

Upvotes: 3

Related Questions