Your Ad Here

Posted By

vigoncas on 03/08/11


Tagged

hack Smarty template seo Prestashop


Versions (?)

Remove sufix meta title in Prestashop


 / Published in: Smarty
 

To improve SEO in Prestashop we can to apply this hack to the header.tpl removing the global suffix 'shop_name'.

  1. In the themes/YOURTHEME/header.tpl you can replace that line:
  2.  
  3.  
  4. <title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
  5.  
  6.  
  7. for that:
  8.  
  9.  
  10. {if $meta_title == $shop_name}
  11. <title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
  12. {else}
  13. {assign var=shop_name_trim value=" - $shop_name"}
  14. <title>{$meta_title|replace:$shop_name_trim:''|escape:'htmlall':'UTF-8'}</title>
  15. {/if}

Report this snippet  

You need to login to post a comment.