-
Hello,
When I enter a custom canonical url in the “advanced” RankMath tab, the “<link rel=”canonical”…” in the page source code remains unchanged.
When the AMP plugin is desactivated, the <link rel=”canonical” in the head disappears, but RankMath custom url does not show.
I have succesfully managed to put a temporary piece of php code to display my custom <link rel=”canonical” in the head and it seems to supersede the AMP plugin link. But RankMath custom url does not show either.
Settings :
WordPress 5.8
AMP plugin by AMP Project Contributors Version 2.1.3
AMP settings : standard mode
Theme : GeneratePress + childExplanation : I have two versions of the website, with 100% independent WordPress installations since it was impossible to get AMP plugin to work with the Divi theme and some necessary plugins (not an ideal solution, but it’s was the only way to pass the AMP validator).
1 / normal website built with DIVI and lots of javascript-dependent functionalities
https://www.my-website.com/2 / AMP website built with an amp-compatible theme (GeneratePress) with minimal use of basic plugins.
https://www.my-website.com/amp/normal website 1 will have <link rel=”amphtml” href=”https://www.my-website.com/amp/” (currently desactivated while amp website in in construction)
AMP website 2 should have <link rel=”canonical” href=”https://www.my-website.com/” same as website 1 url
currently displays the “self canonical” link for a standard setup https://www.my-website.com/amp/My guess it that for some reason RankMath custom canonical is not fired when the AMP plugin is in standard mode.
Could you investigate the issue and possibly suggest a workaround ?
Thank you.
Michael
You must be logged in to reply to this ticket.