Jump to content

[Solved] Remove shop name from meta title tag in 1.4


Recommended Posts

Hi folks,

 

I searched the forum for a solution to this, but apparently the code has changed, so the solutions I found are not working anymore. What I would like to do is to remove the shop name from the title tags.

 

Currently PS automatically adds the shop name at the end of the title tag - I would like to NOT have the name auto included.

 

Can someone assist me with this please? Your help is much appreciated.

 

Kind regards,

 

Dan

Link to comment
Share on other sites

Prestashop 1.4.6.2 , Velvet Sky theme. www.victoriasstyles.com . I can not delete automatically added shop name (because istead Victoria's Style the prestashop generated in title tag Victoria's Styles. The symbol ' was replaced by prestashop with '.

Thanks for help

Link to comment
Share on other sites

  • 3 weeks later...

phrasepot could you possibly provide a solution for 1.4.7 as well. The attached one doesn't work. Or maybe you could explain what needs to be changed to remove the site title from the end of all title tags. Alternatively I would settle for being able to change " - " to " | " though.

 

(If only Prestashop could learn from Wordpress when it comes to things like this!)

 

Thanks for your help.

Link to comment
Share on other sites

  • 4 weeks later...

Hi all,

 

I was looking for the same, but sucess. I copied the file from phrasespot but once I put the file on this directory the shop stop working, not sure what to do. Actually I have on this directory a file _Tools.php, what exactly must I do? Erase the old one and let this new one? Copy the code and include it on the old one???

 

Thanks in advance for your reply.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...
  • 3 months later...

Here a good article to remove shop name in meta title:

 

The meta-data for all key pages in PrestaShop is controlled within the classes/Tools.php file. The code you need starts about line 610.

 

The piece of code that refers to the page title (same for all pages home, manufacturers, products etc) and which calls/inserts the shop name into the page title looks like this: $row['meta_title'] = $row['meta_title'].”.Configuration::get(”);

 

So, to remove the shop name from any given page change the code to this: $row['meta_title'] = $row['meta_title'].”.Configuration::get(”); or totally remove it.

 

http://p2webdesign.w...rom-page-title/

 

This works for 1.4.8.2

Link to comment
Share on other sites

  • 4 months later...
  • 3 weeks later...
  • 7 months later...
  • 2 months later...

simple template code for remove shop name from all page titles: easiest way to remove shop name from title

Hi Vekia,

This code works great for header.tpl but cant see to do it for CMS pages, Manufacturers page, New products page etc.

Do you have a "easy fix" for these pages?. 

 

Also I found a post which says it can be done just with changing classes/Tools.php page code but it was for an earlier versión. I'm using 1.5.4.1. Do you think posible to change just one file for all the shop?

Link to comment
Share on other sites

Hi Vekia,

This code works great for header.tpl but cant see to do it for CMS pages, Manufacturers page, New products page etc.

Do you have a "easy fix" for these pages?. 

 

Also I found a post which says it can be done just with changing classes/Tools.php page code but it was for an earlier versión. I'm using 1.5.4.1. Do you think posible to change just one file for all the shop?

SORRY. forget my previous post. Just seen that it works for all pages  :wacko:  :wacko:

Link to comment
Share on other sites

  • 4 months later...

simple template code for remove shop name from all page titles: easiest way to remove shop name from title

Hi Vekia, I used your tutorial a week ago. For one of our multistores the Shopname still comes (for like 6 months now) in front of the meta title for the homepage (so you get Shopname: and then the rest of the title). But, this is only the case in search engines not in the header of the browser.

 

Second I noticed search engines are not always using the Meta Title but part of the H1 Title.

 

Do you have an idea what's going on? Use Presta 1.5.

Link to comment
Share on other sites

1) 2) it's probably because google adds that prefix automatically, unfortunately we can't change that because it's on google side...

im not seo master ;) i know a little about that, but it's not first time when i noticed that google adds own contents to <title> in search results.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...