@murthax If you want to enable/disable Divi’s output of canonical URLs, this can be done by going to Divi>Theme Options>SEO>Index Page SEO and making sure that ‘Enable canonical URLs’ is set to ‘Disabled.’
Divi’s other options for SEO can all be similarly found in the options in Divi>Theme Options>SEO.
Thanks for your reply.
Setting those options has no impact. Even with Yoast disabled.. if I set those to Disabled I still them output when looking the source.
I could confirm that Divi>Theme Options>SEO>Index Page SEO and making sure that ‘Enable canonical URLs’ is set to ‘Disabled.’
I cleared cache from the backend and I still see it in the source. I tried playing with enabling-disabling but the result is the same.
When I enable Yoast this whole section goes away.
<script type=’text/javascript’ src=’http://dalessandro.wpengine.com/wp-content/themes/Divi/core/admin/js/recaptcha.js?ver=5.4.2′></script>
<script type=’text/javascript’ src=’http://dalessandro.wpengine.com/wp-content/plugins/simple-social-icons/svgxuse.js?ver=1.1.21′></script>
<link rel=’https://api.w.org/’ href=’http://dalessandro.wpengine.com/wp-json/’ />
<link rel=”EditURI” type=”application/rsd+xml” title=”RSD” href=”https://dalessandro.wpengine.com/xmlrpc.php?rsd” />
<link rel=”wlwmanifest” type=”application/wlwmanifest+xml” href=”http://dalessandro.wpengine.com/wp-includes/wlwmanifest.xml” />
<link rel=”canonical” href=”http://dalessandro.wpengine.com/” />
<link rel=’shortlink’ href=’http://dalessandro.wpengine.com/’ />
<link rel=”alternate” type=”application/json+oembed” href=”http://dalessandro.wpengine.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fdalessandro.wpengine.com%2F” />
<link rel=”alternate” type=”text/xml+oembed” href=”http://dalessandro.wpengine.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fdalessandro.wpengine.com%2F&format=xml” />
But there is no longer a mention of canonical.
It’s OK to hate divi right?:)
Hi @murthax,
We understand you’re a bit frustrated! Just to be sure this isn’t a bug, would you mind doing a conflict check?
Does Yoast SEO’s canonical work properly if you deactivate all non-Yoast plugins and switch to a standard theme like Twenty Nineteen. Does it still work when you switch back to the Divi theme?
We have a step-by-step guide here: How to check for plugin conflicts.
Thanks, @priscillamc . So I disabled all plugins and then switched to Twenty 19. I then enabled only the Yoast SEO plugin and purged cache. It is not outputting a canonical tag. I was surprised to not see it and I guess I owe Divi an apology.
Between:
<!– This site is optimized with the Yoast SEO plugin v14.6.1 –
And:
<!– / Yoast SEO plugin. –>
There is no mention on the page of: <link rel=”canonical” href=”URL” />
I did some tests on other sites and it seems to be working as expected. I tried uninstalling for the sake of trying with no change. I can’t think of what I might have done differently here than elsewhere.
Any ideas as appreciated. Thank you!
@murthax Can you please confirm whether the pages where the canonical is not being output have a noindex meta tag? If so, that is the intended behavior in that Yoast doesn’t output the canonical for pages set to ‘noindex.’ We also have more information on this here: https://yoast.com/help/canonical-urls-in-wordpress-seo/
@devnihil That was it. Well I feel both relieved and dumb. Thank you for helping me understand this behavior!
Hi,
We’re glad to hear that we were able to pinpoint the concern and resolve it accordingly!
Setting this to resolved. Have a good one!