golles
Total Posts: 237
Joined: 2008-01-15
I am getting the name of the “default Store View” appear in all my title tags in addition to the defaults I have set up in admin>system>configuration>general>design>html head
when I change the name of the default store view to something else I get that new name appear in the titile tag
this is on every page frontend ,except cms pages
does anyone know where the title tag is pulling this from or why?
thanks
Posted: April 3 2008
| top
ROAR
Total Posts: 11
Joined: 2007-09-19
Have you tried admin>system>configuration>manage stores and then change the store view name to what you want.
Posted: April 3 2008
| top
| # 1
golles
Total Posts: 237
Joined: 2008-01-15
ROAR - 03 April 2008 02:51 PM
Have you tried admin>system>configuration>manage stores and then change the store view name to what you want.
yes, I have , as I suggested in my above post - which is ok for now - but I did not really want it to appear at all.
Posted: April 4 2008
| top
| # 2
Zer0
Total Posts: 52
Joined: 2008-03-22
Prague / Czech Republic
Bump.
I am searching this issue too.
How to remove “store view” from the <title>?
Posted: April 10 2008
| top
| # 3
kremdela
Total Posts: 5
Joined: 2008-04-03
This value is pulled in from the value of the “Store View Name” Field found at: System -> Manage Stores
Hope this helps someone, it was bothering me.
Posted: April 16 2008
| top
| # 4
sherrie
Total Posts: 1187
Joined: 2007-12-14
Illinois, USA
I was wondering this exact same thing - there’s gotta be a PHP string somewhere to remove it. I’m not sure where the head.phtml file is looking to grab it with this string:
<title><?php echo htmlspecialchars(html_entity_decode($this->getTitle())) ?></title>
Signature
Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates
Posted: April 16 2008
| top
| # 5
pauljg1
Total Posts: 160
Joined: 2008-02-22
Is this the file you are looking for app/code/core/Mage/Page/Block/Html/head.php
Signature
Uniform Dating
[url=http://www.sonicwebdesign.co.uk]Web Design Derby/url]
[url=http://www.oldfashioned-sweets.co.uk]old fashioned sweets/url]
Posted: April 18 2008
| top
| # 6
cibernoid
Total Posts: 208
Joined: 2008-02-12
I’m having the same weirdo issue too.
Posted: April 23 2008
| top
| # 7
sherrie
Total Posts: 1187
Joined: 2007-12-14
Illinois, USA
pauljg1 - 18 April 2008 02:28 AM
Is this the file you are looking for app/code/core/Mage/Page/Block/Html/head.php
Nope - you still can’t cut the store view name out of the title there.
Signature
Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates
Posted: April 24 2008
| top
| # 8
Moshe
Total Posts: 1771
Joined: 2007-08-07
Los Angeles
@sherrie: it happens in _prepareLayout() methods of main blocks for affected pages.
For example in Mage_Catalog_Block_Product_View and Mage_Catalog_Block_Category_View:
$headBlock -> setTitle ( $title . ' ' . Mage :: getStoreConfig ( 'catalog/seo/title_separator' ). ' ' . Mage :: getStoreConfig ( 'system/store/name' ));
Probably should have a configuration flag for this.
Signature
- I would love to change the world, but they won’t give me the source code -
Posted: April 24 2008
| top
| # 9
sherrie
Total Posts: 1187
Joined: 2007-12-14
Illinois, USA
@Moshe: Thanks! I took out the
.’ ‘.Mage::getStoreConfig(’system/store/name’)
from both of them, but it’s still showing - Default Store View in the title ... did I take out the wrong part?
Signature
Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates
Moshe
Total Posts: 1771
Joined: 2007-08-07
Los Angeles
The usual suspect - cache disabled/refreshed?
On which page does it show store name in title now?
Signature
- I would love to change the world, but they won’t give me the source code -
sherrie
Total Posts: 1187
Joined: 2007-12-14
Illinois, USA
I disabled the cache, refreshed the cache, and reopened the browser and it’s still there on both the category and product view pages. The url is http://www.minervapromotions.com/agd if that helps at all.
Signature
Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates
Moshe
Total Posts: 1771
Joined: 2007-08-07
Los Angeles
Here it is - the default catalog title based on breadcrumbs: in Mage_Catalog_Block_Breadcrumbs.
Signature
- I would love to change the world, but they won’t give me the source code -
sherrie
Total Posts: 1187
Joined: 2007-12-14
Illinois, USA
Fantastic! Thanks SO much! You da man!
For anyone else wondering, in app/code/core/Mage/Breadcrumbs.php
On line 41 find:
$title = $breadcrumb[’label’].’ ‘.Mage::getStoreConfig(’catalog/seo/title_separator’).’ ‘.$title;
and change it to:
$title = $breadcrumb[’label’];
This will remove the category name, too, though - so if you want it you’ll have to mess around a bit more.
Signature
Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates
sszettella
Total Posts: 5
Joined: 2008-04-28
I have found a very different solution, as the code mentioned no longer exists in version 1.0. Here’s what I have come up with:
Source File:
/app/code/core/Mage/Catalog/Block/Product/View.php
line 36 reads:
$headBlock -> setTitle ( $title . ' ' . Mage :: getStoreConfig ( 'catalog/seo/title_separator' ). ' ' . Mage :: getStoreConfig ( 'system/store/name' ));
A very simple solution, that preserves the category name in the <title> tag is this:
$headBlock -> setTitle ( $title . ' ' . Mage :: getStoreConfig ( 'catalog/seo/title_separator' ). ' ' . Mage :: registry ( 'current_category' )-> getName ());
This causes the title to have both the product name and the category name. However, products can be accessed without their category paths, so a more complete solution is this:
$headBlock -> setTitle ( $title . ( Mage :: registry ( 'current_category' ) ? ' ' . Mage :: getStoreConfig ( 'catalog/seo/title_separator' ). ' ' . Mage :: registry ( 'current_category' )-> getName () : '' ) );
Thank you for the previous posts, they certainly sent me in the right direction.
Hope this helps someone.