开发者

Magento Store - Add nofollow to Layered Navigation

开发者 https://www.devze.com 2022-12-16 12:03 出处:网络
Which fi开发者_运维知识库le would I look in to add nofollow tags to my layered navigation?Found it:

Which fi开发者_运维知识库le would I look in to add nofollow tags to my layered navigation?


Found it:

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


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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消