Skip Navigation

Waiting for author

Topic Tags: Multilingual SEO

Overview of the issue

When using Divi and Yoast SEO with WPML, sitemaps won’t appear as expected if you set the language URL format as A different domain per language.

Instead, it will only show the sitemap for the last language you used before turning on the Yoast XML sitemap option.

For example, if you select a secondary language and turn that option off and then on again, the sitemap will show up in that specific language only. It will show the same links in the sitemap for all domains while it should show a different/correct links for each domain.

Workaround

Add the following code to your functions.php file:

add_filter( 'wpseo_enable_xml_sitemap_transient_caching' , '__return_false' ,11);

Next steps to resolve this issue

Multiple clients have already reported this issue to Divi, but it can help move things along if you contact Elegant Themes via their contact form and requested a timeline for the fix.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>