Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
Madbits

Page title not right.

Question

Whenever I visit categories I notice that their title is as follows:

image.png.934bce7152c4b42ce73dde1594e1d46d.png

Category - Shop Name - Short Shop Name

I already add my shops name in meta titles and I do not need the last "- Casablanca".

I also edited classes/Meta.php and removed pretty much all " . '-' . meta::titlewhatever('shopnamewhatever') ".

Kind regards!

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

remove " - shopname" from category titles 

- has anyone found how? I tried the same idea of removing anything likely from classes/Meta.php without luck

Edited by veganline

Share this post


Link to post
Share on other sites
  • 0

You need to edit Meta.php, method getCategoryMetas, lines ~ 443-449

https://github.com/thirtybees/thirtybees/blob/21b15c3e17188037e4862ddf357b6a3d65f1c3bd/classes/Meta.php#L443-L449

There are three similar lines looking like this:

$row['meta_title'] = $title.$row['meta_title'].(!empty($pageNumber) ? ' ('.$pageNumber.')' : '').' - '.Configuration::get('PS_SHOP_NAME');

You want to edit these lines to look like this:

$row['meta_title'] = $title.$row['meta_title'].(!empty($pageNumber) ? ' ('.$pageNumber.')' : '');

 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
5 hours ago, datakick said:

You need to edit Meta.php, method getCategoryMetas, lines ~ 443-449

https://github.com/thirtybees/thirtybees/blob/21b15c3e17188037e4862ddf357b6a3d65f1c3bd/classes/Meta.php#L443-L449

There are three similar lines looking like this:


$row['meta_title'] = $title.$row['meta_title'].(!empty($pageNumber) ? ' ('.$pageNumber.')' : '').' - '.Configuration::get('PS_SHOP_NAME');

You want to edit these lines to look like this:


$row['meta_title'] = $title.$row['meta_title'].(!empty($pageNumber) ? ' ('.$pageNumber.')' : '');

 

image.thumb.png.2cf46bf57cefc3ed5eb3857231825032.png

This is how I already had them. 🙂

Share this post


Link to post
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...