Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Hreflang in Grav

Started by Arthur 6 years ago · 4 replies · 1137 views
6 years ago

Hello,

Is there a way to integrate several language on the website and help Google/Bing/DuckduckGo understand all the different version thanks to hreflang tag and the rel=

I have done that on HTML, on Wordpress website ... but here, I do not know where to or even which plu-ing/add-on to use.

Thanks everyone
Arthur

6 years ago

I use Language Selector plugin instead of LangSwitcher and it comes with an optional template for hreflang, you just add it to your base page and it does the job:
https://github.com/clemdesign/grav-plugin-language-selector

EDIT:
Just checked and even the standard LangSwitcher has the same functionality:
https://github.com/getgrav/grav-plugin-langswitcher

👍 1
1 reply

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 2 days ago
2 81 2 hours ago
Plugins · by renedebaaij, 1 week ago
1 134 3 days ago
Plugins · by Thomas, 6 days ago
1 144 5 days ago
Plugins · by complanar, 4 weeks ago
6 471 3 weeks ago
Plugins · by BenLaKnet, 3 weeks ago
1 294 3 weeks ago