Madbits Posted September 9, 2020 Posted September 9, 2020 Whenever I visit categories I notice that their title is as follows: 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!
1 veganline Posted September 13, 2020 Posted September 13, 2020 (edited) Same here - any ideas welcome Edited September 13, 2020 by veganline
0 veganline Posted September 10, 2020 Posted September 10, 2020 (edited) 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 September 10, 2020 by veganline
0 datakick Posted September 10, 2020 Posted September 10, 2020 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.')' : ''); 1
0 Madbits Posted September 10, 2020 Author Posted September 10, 2020 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.')' : ''); This is how I already had them. 🙂
0 Madbits Posted September 22, 2020 Author Posted September 22, 2020 (edited) 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 October 20, 2020 by Madbits 1
Question
Madbits
Whenever I visit categories I notice that their title is as follows:
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!
5 answers to this question
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