VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: MKI-Miro on September 21, 2018, 09:24:33 AM

Title: Does virtuemart support hreflang on product detail?
Post by: MKI-Miro on September 21, 2018, 09:24:33 AM
Hi

Does virtuemart support hreflang on product detail?

I have enabled System - Language Filter and add alternate meta tags to yes., but on product detail page I can see in source only this line

<link href="https://www.puzzlekosice.sk/en/puzzle-2000-pieces/african-women-ii" rel="canonical" />
Title: Re: Does virtuemart support hreflang on product detail?
Post by: GJC Web Design on September 21, 2018, 10:30:13 AM
no -- I have added hreflang to some sites via an ext. I built around the lang switcher module but not a simple task
Title: Re: Does virtuemart support hreflang on product detail?
Post by: jjk on September 21, 2018, 19:58:23 PM
Just an additional note: The hreflang tag is primarily used by Google to RESTRICT content in a certain language to one country. Joomla by default uses a two letter language code plus the two letter ISO country code. Thus using lang="en-GB" tells Google that the page content is primarily addressing people in the U.K and for example de-DE addresses German people.

So in my opinion one should only use hreflang if you want to address certain countries. If you want to address also the USA, Australia, etc. one should use only lang="en". And in case of German use lang="de". With lang="de-DE" you might restrict the page display in Austria (lang="de-AT") and Switzerland (lang="de-CH").


Title: Re: Does virtuemart support hreflang on product detail?
Post by: Studio 42 on September 22, 2018, 00:03:04 AM
If you use my language switcher module, it add the href for all the alternate language you have.
Eg in my site
<link href="https://shop.st42.fr/fr/produits" rel="alternate" hreflang="fr">
for english page https://shop.st42.fr/en/products.
The <html lang="en-gb"> already explain to google that your page is in en-GB language, so you dont need an extra tag or meta.
Title: Re: Does virtuemart support hreflang on product detail?
Post by: Studio 42 on December 27, 2018, 14:50:10 PM
Quote from: finn92 on December 27, 2018, 11:19:56 AM
I don't think it will support because it's country specific.
My language module support it http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm
Title: Re: Does virtuemart support hreflang on product detail?
Post by: parfumylacno on November 26, 2019, 12:26:20 PM
Quote from: GJC Web Design on September 21, 2018, 10:30:13 AM
no -- I have added hreflang to some sites via an ext. I built around the lang switcher module but not a simple task
Hello, Please, could you help me with correct settings of multilangue e-shop and its blog?

Does your language switcher support too hreflang="x-default" tag? <link rel="alternate" hreflang="x-default" href="https://shop.st42.fr/fr/produits" />

thank you

ps. this hreflang tutorial seems be very good (https://ahrefs.com/blog/hreflang-tags/) - but i have to find out, how it should be implement in Joomla and virtuermart - to example, how make or add manualy xml sitemap to automatical sitemap (to example Jsitemap pro) :)
Title: Re: Does virtuemart support hreflang on product detail?
Post by: parfumylacno on November 26, 2019, 12:27:55 PM
and one more question - does your product add hreflang to Joomla sites - articles, categories.. too?