I am using Mageworx extension for canonical tags, but want to add a custom canonical tag/url in a category, and remove the canonical url generated by the extension. I am using Magento 2.2.5. I used this in

category > Design > Layout Update XML:

    <link  rel="canonical" href="http://dev.ndspro.com/products/drainage/grates/catch-basin-grates.html" />
    <remove name="canonical" />

But it created 2 href tags in the custom created canonical url, and also didn't remove the extension url.

Your Answer

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

Browse other questions tagged or ask your own question.