guest* Posted February 17, 2012 Share Posted February 17, 2012 In which file should I find the truncate for meta-description. According to Serps there should not more than 160 characters. For me are showing 190 characters. Is this a Template issue ? Where do I find this to change to 160 characters ? Link to comment Share on other sites More sharing options...
phrasespot Posted February 19, 2012 Share Posted February 19, 2012 Meta descriptions are not truncated before output (which can be up-to 255 chars). Locate header.tpl in your theme and change {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} to add a truncate modifier {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|truncate:160|escape:html:'UTF-8'}" /> {/if} Link to comment Share on other sites More sharing options...
guest* Posted February 19, 2012 Author Share Posted February 19, 2012 OK. Thank you for quick help. It works... I do not understand why prestashop do not make this as standard. Link to comment Share on other sites More sharing options...
phrasespot Posted February 20, 2012 Share Posted February 20, 2012 OK. Thank you for quick help. It works... Great, you're welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now