Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 5 replies, has 0 voices.

Last updated by Lauren 5 hours, 48 minutes ago.

Assisted by: Lauren.

Author Posts
August 7, 2025 at 9:52 pm #17304148

constanceC-2

Background of the issue:
I am developing a site and need help with creating dedicated URLs, canonical tags, and proper hreflang markup for Spanish content. Currently, the Spanish content is sharing URLs with the English content.

Symptoms:
The site is not creating dedicated URLs, canonical tags, and proper hreflang markup for Spanish content. All content is sharing the URL with English content.

Questions:
How can I create dedicated URLs for Spanish content using WPML?
What steps should I follow to implement canonical tags for Spanish content?
How do I set up proper hreflang markup for Spanish content in WPML?

August 8, 2025 at 7:42 pm #17306224

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thank you for contacting WPML support. I'll be happy to help you with this. Have you translated the content to Spanish yet? once the content is translated, the translations will have their own dedicated URL, based on the preferences you selected at WPML -> Languages. The hreflang and canonical URLs will also be set automatically once you translate the content.

If you have already translated content and are not seeing these, then please send me the URL to the English page as well as the URL to the Spanish page and i'll be happy to look further into this for you.

August 13, 2025 at 2:23 pm #17318021

constanceC-2

Good morning. Ok, I will send you a sample page. It is a lot of pages, but I will send you one sample. Also, is their a way to fix this for all the pages that have already been translated that do not have a unique Spanish hreflang and canonical URL?

August 13, 2025 at 2:34 pm #17318077

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I can't really suggest a fix because I can't yet see what is wrong. Please share a link to a page where I can see the issue as well as a screenshot of what you are seeing in the hreflang that is incorrect. Then I can troubleshoot and try to find the issue and a solution.

August 14, 2025 at 5:42 pm #17321849

constanceC-2

This is a critical SEO issue that may be directly impacting our English search visibility—especially for blog content targeting U.S. traffic.
If we don’t fix this soon:
• Google will continue prioritizing Spanish content.
• Our English rankings may continue to decline or fail to grow.
• We risk losing relevance in our primary market (English-speaking U.S. users).
Moving forward, we need to:
• Pausing all Spanish translations via WPML.
• Rebuilding the Spanish content structure with dedicated URLs, canonical tags, and proper hreflang markup.
• Ensuring each language version is treated by Google as a standalone, legitimate, indexable page.
URL Samples:

thecolemanlawgroup.com/blog/immigration/reasons-to-hire-a-spouse-visa-attorney/
thecolemanlawgroup.com/blog/immigration/3-vawa-laws-you-should-know/
thecolemanlawgroup.com/blog/immigration/qualities-to-look-for-in-a-k-visa-attorney/
thecolemanlawgroup.com/blog/personal-injury/truck-accident-lawyer-in-florida-help/

They translate to Spanish on the URL based on the user's browser settings....
It does it on the same url...That content needs to live on a unique Spanish URL...
Not sure how WPML does the translation...I assume it’s doing it via java script or some other setting. Please let me know.

August 14, 2025 at 5:52 pm #17321853

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

English URL:
hidden link

Spanish URL:
hidden link

I inspected the code and this is what I see for hreflang, which looks correct to me:
<link rel="alternate" hreflang="en" href="hidden link" />
<link rel="alternate" hreflang="es" href="hidden link" />
<link rel="alternate" hreflang="x-default" href="hidden link" />

I checked both URLs and the English shows English content, and the Spanish shows Spanish content. My apologies if I am misunderstanding the issue, but I don't see what is wrong with these URLs.

If the issue is that the URL is redirected to Spanish based on the browser language setting, this is a setting in WPML -> Languages that you can disable in the Browser Redirect settings.

Please let me know if you have any further questions or if I am missing the issue, a screenshot of what is wrong and what you are expecting to show would be helpful.

Screenshot 2025-08-14 1.49.47 PM.png
Screenshot 2025-08-14 1.50.03 PM.png