keat Posted November 15, 2017 Share Posted November 15, 2017 (edited) Any ideas how to add hreflang to my site Edited November 15, 2017 by keat Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 15, 2017 Share Posted November 15, 2017 Short answer: Use the template variable {$HTML_LANG} for the language being used for this session. Long answer: Having lightly scanned the intent and implementation of hreflang, I will say that a CubeCart installation does not fall within the parameters of how a site is annotated with, nor requires, hreflang. From what I read, if your site has pages in a specific subfolder* for English, another set of pages in a separate subfolder for Spanish, a third set of pages in a subfolder for French, etc, then in each set of pages, common hreflang code should exist that point to the related page in all the other folders. CubeCart does not operate that way. (* It could if there were a URL Rewrite pattern set up in .htaccess that parsed for the country code and rewrote the URL to add the querystring necessary to tell CubeCart what languge pack to switch on and use for that session.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.