Questions tagged [hreflang]

The hreflang attribute specifies the language of an HTML document.

Many websites serve users from around the world with content translated or targeted to users in a certain region. Google uses the rel="alternate" hreflang="x" attributes to serve the correct language or regional URL in Search results.

80 questions
1
vote
0 answers

Hreflang (Search Console) & arabic words in url

I have a website with urls like this htxp://ar.dzmeteo.com/أحوال-الطقس-في-أدرار the problem is that in search console arabic urls are decoded, like…
Hani
  • 31
  • 1
  • 1
  • 5
1
vote
1 answer

Does the hreflang attr. make sense in ?

Does a hreflang attribute make sense in the element? I thought about using this attribute, like: to let every link ( and ) inherit the value of hreflang. Is this possible?
Glasfaser
  • 21
  • 7
0
votes
0 answers

Sitemap showing breakage in structure (layout) when adding hreflang

My Sitemap was showing correctly both its operation and its layout, but after inserting the attribute xhtml:link rel="alternate" the same start to be displayed in a strange way Sitemap structure with xtml:link However, when checking the source code…
Vitor L
  • 1
  • 1
0
votes
0 answers

How To remove the English Tag from the WPML if the code is not added manually by us

In my Website the two x-default tags are there because the home page url is in english and the two tags one for "en" and another one for x-default both pointing to the same url and that's why the two x-defaluts are there in my website. Now I want to…
0
votes
0 answers

How can I get multi-language pages to switch based on browser language settings on HubSpot?

I have a website on HubSpot where I've created multi-language variants on some of the pages. The default pages are for the United Kingdom while the variants are for users in the United States. I understand that HubSpot does not switch languages…
Arya Prem
  • 1
  • 1
0
votes
2 answers

Why these Canonical and Hreflang Tags Produce Errors?

I am working on a website that has Turkish, English, German and French versions. The tags in the head part of the Turkish main page are as follows:
KenAdamsTR
  • 145
  • 1
  • 1
  • 9
0
votes
0 answers

How to test that hreflang setup works correctly in different countries?

So after much effort and pain (I'm an iOS developer, not a web developer), I have my website (https://359north.com) set up to support 16 different languages/countries (thanks https://ahrefs.com - I get 100% on their site audit). Set up like…
Steve Mykytyn
  • 73
  • 2
  • 7
0
votes
0 answers

What is the correct way to apply Hreflang tag?

I am running a multilingual site, and the url is as follows https://example1.co.kr (Korean - ) https://example2.info (Japanese - ) And I tested the following codes in the same page, but none of it passes the…
cheonmu
  • 61
  • 7
0
votes
0 answers

How to add hreflang tags in wordpress without plugin for specific pages?

Since I have 2 versions of similar pages in different languages, so as per google, defining an hreflang link for each version of a page is a must. I want to add the hreflang rel=”alternate” attribute just after the head section on my home page & one…
Glenn
  • 1
  • 1
0
votes
0 answers

hreflang issue when using rewrite rules in wordpress

I'm adding a query var and creating a rewrite rule so I can enter the query variable nicely in the url. Here's the code: function add_query_vars($aVars) { $aVars[] = "richter_redirect"; return $aVars; } add_filter('query_vars',…
Diezel
  • 43
  • 6
0
votes
1 answer

Can I set hreflangs for two different domains

My client could not get subdomains of his website and he bought a completely different domain but the content and design, everything is the same so those two sites are duplicate site for different locations. Can I set hreflangs for two different…
Satie
  • 9
  • 2
0
votes
0 answers

Should I add hrefLang attribute to the header using React-helmet in SSR or CSR?

I have a react app that is now becoming multi regional and needs the addition of the hrefLang HTML tag. The app renders using SSR and then CSR. My question is when should I add add the hrefLang tag. During SSR or CSR?
0
votes
1 answer

In React app that support multilingual, how to use the hreflang tag correctly?

I have a React application with 3 pages(routes) and I support 2 languages (English and Spanish). Do I need to paste the following code In the public\index.html part like this?
0
votes
1 answer

Is there a way to implement hreflang on subfolder in Shopify

Here my current custom code in shopify. the output goes like this via source code The…
johnhgaspay
  • 51
  • 2
  • 10
0
votes
1 answer

Adding hreflang to my head without creating extra languages in WPML

I build a site with 4 languages: Dutch French German English I did this with WPML. I want to make use of regions, for example en-US, en-GB, en-IE. WPML said I need to add 2 extra languages what would mean that only for the hreflang I need to have…
CJabber201
  • 97
  • 8