exnatural Posted November 4, 2013 Share Posted November 4, 2013 (edited) I search the net to look some information about, but I can't find anything. There 2 languages installed in our 1.4.8.3 PS website, as we search the net we see text in the snippet that we can't see from Back office. If we get in Google results one english page of ours, the snippet shows at the end of meta description: (English (English)) And, of course, if the result is in spanish: (Spanish (Spanish )) Here you have google example results. How we can delete this information? we can't see that on meta description, hope is there any way to solve using the code. Sure is simple issue, but we need some help to know how we look, hope anybody can give us a hand, thank you! Edited November 5, 2013 by brais (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted November 4, 2013 Share Posted November 4, 2013 Can you paste the contents for your header.tpl to pastebin or somewhere that we can check it out. Link to comment Share on other sites More sharing options...
exnatural Posted November 4, 2013 Author Share Posted November 4, 2013 Hi, Thanks for reply. Yes, I look into header.tpl and I think this is the line I have to modify: {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}{if isset($smarty.get.p) && $smarty.get.p} ({$smarty.get.p}){/if}{foreach from=$languages item=language}{if $language.iso_code == $lang_iso} ({$language.name}){/if}{/foreach}" /> Link to comment Share on other sites More sharing options...
Dh42 Posted November 4, 2013 Share Posted November 4, 2013 CAn you post the whole file on pastebin and I will make an edit that will fix it. Link to comment Share on other sites More sharing options...
exnatural Posted November 4, 2013 Author Share Posted November 4, 2013 (edited) Here is the whole code, hope it works: now http://pastebin.com/GhRYa5xr Edited November 4, 2013 by brais (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted November 4, 2013 Share Posted November 4, 2013 This should fix your issue and another one too. http://pastebin.com/aikybNVS 1 Link to comment Share on other sites More sharing options...
exnatural Posted November 4, 2013 Author Share Posted November 4, 2013 Uploaded, thanks for give me a hand. I will look into the new file to see the changes and try to understand them. I'm curious about the other issue, thanks for solve it too! Link to comment Share on other sites More sharing options...
Dh42 Posted November 4, 2013 Share Posted November 4, 2013 Prestashop puts a generator in the template, I took it out. Also the xml:lang={$lang_iso} I just changed it to the more correct lang={$lang_iso} Link to comment Share on other sites More sharing options...
exnatural Posted November 4, 2013 Author Share Posted November 4, 2013 Yeah I can see the changes you made with a online tool, that's great, thanks for the explanation. Link to comment Share on other sites More sharing options...
Dh42 Posted November 4, 2013 Share Posted November 4, 2013 No problem. Link to comment Share on other sites More sharing options...
Recommended Posts