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

Nuxt application generates duplicate hreflang for each locale

I am building a Nuxt app with multiple locales. Nuxt seems to generate hreflang tags in head automatically, but it generates duplicate for each locale, e.g.:
irwin
  • 115
  • 1
  • 2
  • 10
0
votes
1 answer

Is the "fr-DZ" label ( that we put on the hreflang ) correct for SEO?

Is this code recognizable by google by Google? I mean, is the "DZ" code correct for SEO? I searched about this subject, but any precise answer. I'm using wpml for translation, and…
0
votes
1 answer

Maintain hreflang external pages in typo3

I would like to maintain the hreflang for pages in Typo3 7.6.19. This is not possible automatically, because the pages are external and different. With Yoast-SEO this possibility (at least in my version) does not come along. It is an old Typo3…
Julian
  • 598
  • 8
  • 23
0
votes
0 answers

Automatic Generate of Hreflangs

I would like to ask for a hand to create a code that automatically generates hreflangs on the web page with identical names (ex. /page123.php). For example the page www.example.it/page123.php has many versions in other languages. Is it possible to…
0
votes
2 answers

Echo PHP inside BigCommerce HTML href (self-referencing hreflang tags)

I'm trying to use PHP to echo the full URL of the current page as the href value. I read a few different post and came up with the following code, which isn't working:
0
votes
1 answer

How change the ISO and Where is hreflang configured into Prestashop 1.7

I have a problem with Prestashop 1.7.5.1 with French Canadian language. Pretashop has configure the French Canada has "qc" instead of "fr" or "fr_CA" which causing Google Search Console to not identify the proper language for indexing my pages. My…
0
votes
1 answer

Hreflang tags on both English and German versions of a website?

I'm working on a multi-language website, English and German. I'm using the hreflang tags below on the German website.
StephenMeehan
  • 1,083
  • 2
  • 15
  • 26
0
votes
1 answer

sitemap.xml with hreflang tags - incorrect namespace

This is the format of my sitemap.xml
Muhammad Ali
  • 668
  • 1
  • 9
  • 24
0
votes
1 answer

Blanket hreflang or lang attribute for single language website

My marketing team is on me to fix Site Audit errors reported by Semrush and Ahrefs. The error is: "218 pages have no hreflang and lang attributes" This is a single language site - all in US English. I realize I can go into 218 pages and change <…
user35546
  • 65
  • 1
  • 7
0
votes
0 answers

Can I use hreflang tag in sitemap-index file?

I have a sitemapindex file with sitemap and loc elements. Can I add hreflang attribute to this file, is that logical? Because sitemapindex contains only URLs to other sitemaps.
user10863060
0
votes
1 answer

Correct use of hreflang / canonical tags on regional shopify stores

I'm setting up 2 regional shopify sites. Should I consider canonical tags or/and use hreflang to ensure that search engines will send my users towards the right site. The first store covers the Europe region. The second (and default) covers the…
0
votes
0 answers

Typo3: menu not working correctly with path overrides

I am using the following Typoscript code to generate hreflang tags dynamically. lib.hreflang = HMENU lib.hreflang { special = language #Sprach IDs eintragen special.value = 0,1 1 = TMENU 1 { NO = 1 NO { …
ESP32
  • 8,089
  • 2
  • 40
  • 61
0
votes
1 answer

Self-referencing hreflang tags

What does it mean when a hreflang tag is self referencing? And if I wanted to implement the following onto a single-language website, how would I make it self referencing?
Moses Kirathe
  • 322
  • 1
  • 3
  • 14
0
votes
2 answers

Magento hreflang Implementation

Using code from a previous discussion (link:https://magento.stackexchange.com/questions/12504/how-to-add-hreflang-tags-or-other-meta-tags-to-pages-in-magento), I was able to implement the hreflang links into our Magento site. Here is the code that…
0
votes
0 answers

React Helmet is really slow. Do I need 'hreflang' links client-side?

I've got a page on my website which has a lot of alternate links caused by 5 different languages and content for 31 countries. In sum 155 different links. But React Helmet is reaaaally slow and the page freezes for some seconds. That's really…
Vincent Hoch-Drei
  • 603
  • 2
  • 7
  • 21