snekpeg Posted April 4, 2013 Share Posted April 4, 2013 Hello, I'm trying to remove the shop name from my title but it doesn't work when I follow all the topics about this subject. I've tried the override function with Meta.php but nothing happens when I create this file. And I've tried to edit the Tools.php file but I'm getting an error when I edit this file. So does anybody know how to remove the shop name from my titles in Prestashop V1.4.9? Thanks! Link to comment Share on other sites More sharing options...
guest* Posted April 4, 2013 Share Posted April 4, 2013 Simply go on back-office to your tools -> cms and edit there the metas from index.php. Link to comment Share on other sites More sharing options...
snekpeg Posted April 4, 2013 Author Share Posted April 4, 2013 Thank you for your fast answer. But Prestashop automatically add the shop name: I have it like this: Meta title: Title But it shows this in the code: Title - shop name The text after Title is created automatically. I can't remove it there right? Link to comment Share on other sites More sharing options...
snekpeg Posted April 4, 2013 Author Share Posted April 4, 2013 Anyone? Link to comment Share on other sites More sharing options...
vekia Posted April 4, 2013 Share Posted April 4, 2013 you can use our override for that: http://mypresta.eu/e...meta-title.html i know that this is for version 1.5.2 but in 1.4.9 it is very similar. just follow the instructions if it wont work, please contact with me and i will prepare for you .tpl file modification (which will always work - no matter which version of ps you use) 1 Link to comment Share on other sites More sharing options...
snekpeg Posted April 5, 2013 Author Share Posted April 5, 2013 This is solved by Vekia: Find the file: header.tpl in your theme and open it Replace this: <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> With: {assign var=shop_name_to_trim value=" - $shop_name"} <title>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</title> turn on force compilation in back office preferences -> performance Turn force compilation only one time on - then refresh shop page to "recompile" - and after that, you can turn force compile off. And it's done! 1 Link to comment Share on other sites More sharing options...
vekia Posted April 5, 2013 Share Posted April 5, 2013 exactly :-) this is easiest way to remove shop name from meta tag, enjoy! full tutorial available here: remove shop name from title - new easiest way Link to comment Share on other sites More sharing options...
joshua_lee Posted July 3, 2014 Share Posted July 3, 2014 Is there a way to do this for the homepage only? And not affect all the other pages with shop name? (1.6) Link to comment Share on other sites More sharing options...
vekia Posted July 3, 2014 Share Posted July 3, 2014 ohh you already posted that sorry i missed your reply here okay, so simply to modify it only for homepage use this code: {if $page_name == 'index'} {assign var=shop_name_to_trim value=" - $shop_name"} <title>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</title> {else} <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {/if} 1 Link to comment Share on other sites More sharing options...
joshua_lee Posted July 4, 2014 Share Posted July 4, 2014 So simple, yet so amazing. Ha. Thank you! 1 Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2014 Share Posted July 4, 2014 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