Where can I add a rel=”nofollow” to “View as: Grid List” and “Sort By” in Magento Commerce
If you are wondering where in the code you can add rel=”nofollow’ to the top bits (view as Grid, sort by etc) of the category and search pages in Magento you came to the right place.
To clarify these links are are
http://www.domain.com/category?mode=list
http://www.domain.com/category?mode=grid
http://www.domain.com/category?mode=grid&limit;=9&p;=2
http://www.domain.com/category?mode=grid&limit;=15
etc.
Open the following file:
/app/design/frontend/default/[*your skin name*]/template/catalog/product/list/toolbar.phtml
– replace [*your skin name*] with the skin name you setup if you use a different design than the default.
If you are using the default design, replace it with ‘default’. In this case the file is here:
/app/design/frontend/default/default/template/catalog/product/list/toolbar.phtml
Add rel=”nofollow” to line 87, 102 and 104.
Didn't find what you were looking for? Try these links:
"The only way of finding the limits of the possible is by going beyond them into the impossible." -
Arthur C. Clarke