I want to add canonical tag for all cms pages. Currently canonical tag enabled for category and product page.

How to do this?

Go to Admin Panel > Content > Pages > Opne CMS Page > Design > Layout Update XML

Add code in there

<head>
      <link rel="canonical" src="www.example.com/page-url-key" src_type="url"/>
</head>

Don't forget to flush the cache.

  • It didnt work at first but now it does. Cash has to be flushed and not refreshed. – Code Spirit Sep 11 at 14:35
  • I already mentioned Flush not Refreshed. Glad that It worked :) – Abhishek Panchal Sep 11 at 14:38

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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