Jump to content

Changing text in title bar on home page


Recommended Posts

Can anyone tell me how to stop the company name appearing in the title bar on the index page.

I've filled in the text I want in Preferences>Meta-tags, but still the company name appears first.

This is not good for search engine results.

PS ver 1.2.5.

Thanks in advance for any help.

Link to comment
Share on other sites

You'll need to edit classes/Tools.php and comment out the following on line 493, 509 and 523 (in PrestaShop v1.3.1):

$row['meta_title'] = $row['meta_title'].' - '.Configuration::get('PS_SHOP_NAME');



and change line 545 from:

$ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? Configuration::get('PS_SHOP_NAME').' - '.$metas['title'] : Configuration::get('PS_SHOP_NAME');



to:

$ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? /*Configuration::get('PS_SHOP_NAME').' - '.*/$metas['title'] : Configuration::get('PS_SHOP_NAME');



and comment out the following line 576 from:

$metaTags['meta_title'] = Configuration::get('PS_SHOP_NAME').' - '.$defaultValue;



to:

$metaTags['meta_title'] = /*Configuration::get('PS_SHOP_NAME').' - '.*/$defaultValue;

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...