-
-
Save yireo/4761542 to your computer and use it in GitHub Desktop.
<layout> | |
<catalog_category_layered> | |
<reference name="head"> | |
<action method="setRobots"><meta>NOINDEX,FOLLOW</meta></action> | |
</reference> | |
</catalog_category_layered> | |
<catalog_category_layered_nochildren> | |
<reference name="head"> | |
<action method="setRobots"><meta>NOINDEX,FOLLOW</meta></action> | |
</reference> | |
</catalog_category_layered_nochildren> | |
</layout> |
The Gist is actually all you need to copy and paste the right code. The filename is "local.xml" and the code is there. Note that we do NOT recommend you to make any changes to your Magento XML-layouts without having the right knowledge. Any change might destroy your site. Make sure you fully understand the fundaments of XML-layouts before using this code. The official Magento site has numerous guides that you should read inside-out before starting with hacking your own code.
The usage of robots.txt is not related to this Gist. If you want to know more about the benefits of a robots-file, it is best to ask around on the official Magento Forums. This page is only ment to discuss the specific code of this Gist. It is not ment to give additional support on Magento.
Thanks in advance, I really appreciate it !
You can use this code in the local.xml of your own theme.
Learn how to create themes. More information see my presentation held on the Dutch edition of Meet Magento: http://www.slideshare.net/hans2103/magento-theme-set-the-basics-right-mm12nl