Href Lang Tags

Open to all! Ask other shopowners for help.
Post Reply
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Href Lang Tags

Post by radhavallabh »

Hi;
Is there way for generating href_lang tags in Phoenix for multi language support in Google?
Please help to let me know;
Thank you in advance;
Very Warm Regds./
radhavallabh


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Href Lang Tags

Post by ecartz »

There is not an established way to do this as far as I know. https://developers.google.com/search/do ... d-versions

To implement it, someone could create either a header tag module (like ht_canonical) or an injectSiteStart hook listener.

Note that this would probably also require having separate URLs per language. Which might also be tricky to set up. Might have to stop using the existing system hook and replace it with a different one.

https://github.com/CE-PhoenixCart/Phoen ... .sql#L1129
https://github.com/CE-PhoenixCart/Phoen ... on.php#L49


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply