4

Can I set a specific category to NO INDEX, NO FOLLOW in Magento 2? In the previous version I could use an updated layout XML reference to do this within a specific category.

1 Answer 1

5

You can do this by updating category Layout Update XML in admin.

Admin - > Products -> Categories -> Select the category -> Design -> Layout Update XML -> Add the below code -> Save

<head>
    <meta name="robots" content="NOINDEX,NOFOLLOW"/>
</head>

Remove cache and check. You can see the changes in front end product category page source.

4
  • This option is no longer present in Magento 2.4.2 so what is the possible solution May 12, 2022 at 11:04
  • did you find any solution? @CodeForGood Jun 30, 2022 at 20:44
  • @MageExplorer, Yes, I solved it with a custom module. Jul 1, 2022 at 3:44
  • can you share some info? Jul 1, 2022 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.