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.


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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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