Jump to content
thirty bees forum
  • 0

Page title not right.


Madbits

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!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 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
Link to comment
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. 🙂

Link to comment
Share on other sites

  • 0
On 9/13/2020 at 3:35 PM, veganline said:

Same here - any ideas welcome

{assign var=_title value=" - $shop_name"}
<title>{$meta_title|replace:$_title:' - Your Shop Name'|escape:'htmlall':'UTF-8'}</title>

This is what I'm using to fix this issue, it will replace any shops name that will be generated in a title with the one you specifie in ' - Your Shop Name'.
Hope it helps. 🙂

Use it in your header.tpl

Edited by Madbits
  • Like 1
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...