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
1 answer

Specify sitemap language (same language for all sitemap)

According to Google, you can specify languages in a sitemap like this: http://www.example.com/english/page.html
Sergio
  • 658
  • 1
  • 9
  • 22
1
vote
1 answer

How can i remove the region in TYPO3 9 SEO extension from hreflang

In a customer project we use the SEO Extension from TYPO3 9. It creates automatically the hreflang tags for us. But how can I remove the region from the hreflang tags? IT LOOKS LIKE THIS
MonTea
  • 1,166
  • 1
  • 13
  • 30
1
vote
0 answers

Product names are randomly translated in Magento widget

I've implemented a custom product slider in my Magento store. Sometimes the product titles in the slider are in English instead of Dutch on the Dutch storeview. When I empty the cache everything works normal (titles back to Dutch) for about 1-2…
IvoJongmans
  • 31
  • 1
  • 3
1
vote
1 answer

Avoid duplicating hreflang tags

How can i avoid duplicating hreflang tags in this situation: Home : http://mywebsite.com -> use browser language (assuming what is french now)
Pauznet
  • 11
  • 1
1
vote
0 answers

hreflang tags not visible on google console even tho I put them on page. Why?

I made my website on english language. It has now 1 language en and added the hreflang attributes. There is no sitemap just the hreflang tags in html. Most of the online tools see them but Google does not see them - it says in console - "Your site…
groups.for
  • 11
  • 3
1
vote
2 answers

Is it correct to use hreflang in link alternate tags to suggest region-specific alternatives, to evade them being determined duplicates?

Please help me out here people so that I can give a middle finger to the small firm where I was the sole web developer, from which I was sacked after only 2 days into a trial. So, for just an afternoon, they asked me to look into their SEO markup.…
lightsurge
  • 297
  • 5
  • 9
1
vote
0 answers

hreflang for China Taiwan zh-Hans zh-Hant or zh-cn zh-tw

Hello thanks for any input, ok the Hreflang, should I use the zh-Hans zh-Hant or zh-cn zh-tw as seen below, cheers 简体中文 (Chinese Simplified)
Emma Linnery
  • 101
  • 9
1
vote
0 answers

The hreflang tag shows an error in the check tool. Self-referenced tag and return tag link does not properly set up.?

We use 'hreflang' tag for the replacement of our website language, As I have set up the 'WEBSITE . And under the head, I have used tag, And for my canonical tag I have set my…
GS Guri
  • 1
  • 1
  • 8
1
vote
3 answers

How to parse an XML with xhtml:link in PHP?

The goal: import an external XML file (for this example, it's inline) get the < loc >, save into variable find the < xhtml:link > that has the href-lang="fr-ca" attribute, get the href value, save into variable insert both in the DB Problem I…
taketheleap
  • 107
  • 1
  • 1
  • 12
1
vote
1 answer

I've an issue with hreflang tag. I'm working in a multilanguage site that have two languages, italian and english. I'd like to set automatically main page language in english for all the countries different from Italy. I put this code on main page…
Elisa Ltc
  • 77
  • 10
1
vote
1 answer

Link alternate hreflang two links with same language, SEO?

I am displaying these alternate links in the header:
London Smith
  • 1,622
  • 2
  • 18
  • 39
1
vote
1 answer

Create hreflang tags only using Liquid in Business catalyst

I was wondering if there is a more efficient way to create hreflang tags, just using liquid in BC, without the need to create webapp. I tried this way which makes sense, but it doesn't work for some reason. {% capture pagURL…
Daut
  • 2,537
  • 1
  • 19
  • 32
1
vote
2 answers

hreflang issue from webmaster tools

So I use href lang ONLY on my INDEX page, like this: But I keep getting these errors in google webmaster tools Google has detected that some pages on your site have…
Uffo
  • 9,628
  • 24
  • 90
  • 154
1
vote
0 answers

How to set the hreflang for two languages?

My website is available in two languages: dutch and english. The website has the dutch tld: http://www.example.nl. The homepage does two things: Display the dutch version of the website for dutch visitors Redirect to http://www.example.nl/en for…
Jordy
  • 4,719
  • 11
  • 47
  • 81
1
vote
1 answer

Using hreflang right

When I checked my site with Google Webmaster Tools, I saw a warn about a missing hreflang tag. I have a one-page website which is multi-language – German and English. When first visited the language will be the same as the browser language. If the…
user1706680
  • 1,103
  • 3
  • 15
  • 34