开发者

Magento Store - Add nofollow to Layered Navigation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜