SteliosAl Posted February 8, 2013 Share Posted February 8, 2013 Hello would like to add the contents language in html for SEO purposes..Can you please give some detail of how and where to add this..This is what i get from SEOquake program: You have specified your website's language, but only in META Language Tag. The 'lang' attribute has a higher precedence. Here are some suggestions for multilingual sites: You should declare the contents language in the HTML code of each page. You should also declare the language code in the URL (for example: company.com/es/contact.html). Thank you in advance Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted February 8, 2013 Share Posted February 8, 2013 You just have to activate Prestashop Friendly URL feature Back Office > Preferences > SEO & URLs Link to comment Share on other sites More sharing options...
SteliosAl Posted February 10, 2013 Author Share Posted February 10, 2013 You just have to activate Prestashop Friendly URL feature Back Office > Preferences > SEO & URLs ok but will this declare the contents language in the HTML code of each page or is it just a meta language tag? thanks Link to comment Share on other sites More sharing options...
cedricfontaine Posted February 10, 2013 Share Posted February 10, 2013 You can edit your header.tpl and check if you have the lang attribute in the html tag : <html lang="{$lang_iso}"> 1 Link to comment Share on other sites More sharing options...
SteliosAl Posted February 10, 2013 Author Share Posted February 10, 2013 You can edit your header.tpl and check if you have the lang attribute in the html tag : <html lang="{$lang_iso}"> I have found this in the header.tpl <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9 ie8" lang="en"> <![endif]--> <!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]--> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}"> Is this ok? How about the other languages? Does prestashop do it automatically? Link to comment Share on other sites More sharing options...
cedricfontaine Posted February 10, 2013 Share Posted February 10, 2013 You can replace "en" by "{$lang_iso}" 2 Link to comment Share on other sites More sharing options...
SteliosAl Posted February 10, 2013 Author Share Posted February 10, 2013 You can replace "en" by "{$lang_iso}" I have replaced all ''en'' with "{$lang_iso}". Is this ok now? i am doing this for Search Engine optimisation purposes Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts