Joomla 3.5.1 - VM 3.0.16
Hi ... I´m dumbstruck (again). Shouldn´t the browser page title also display the subcategory name ?
It shows the main category name correctly, If I click on the subcategory, it still shows me the main category in the browser page title. If I click on a product, it shows the product name correctly in the browser page title.
Interesting enough ... the <meta name="title" content="sub-category name" /> is displayed correctly, but not the <title>subcategory</title>
Example:
Top level category I get ...
<meta name="title" content="main category" />
<title>main category</title>
2nd level I get
<meta name="title" content="sub-category" />
<title>main category</title>
Is there a way to control that ? I see that as wrong, but cannot find a solution for that ?
Post a link to your site so someone can take a look
There are many options for modifying these meta tags
thanks ... link below ...
http://web124.login-8.loginserver.ch/cms/index.php/shop/hair-extensions (main category - shows correct title)
http://web124.login-8.loginserver.ch/cms/index.php/shop/hair-extensions/glatt-50-55-cm (sub-category - shows wrong the main category title - should display "glatt-50-55-cm" )
http://web124.login-8.loginserver.ch/cms/index.php/shop/hair-extensions/glatt-50-55-cm/echthaarstraehnen-natural-farben-1b2012-07-12-16-28-29_-detail (product details - shows correct the product title)
Hmmm ... I kind of got it to work by adding a custom page title snippet here from the board - just had to comment out some part, because it was repeating the subcategory and it show twice in the title tag ...
html/com_virtuemart/category/default.php
$document = JFactory::getDocument();
$newTitle = '';
// Set the titles
if ($this->product->customtitle) {
$document->setTitle(strip_tags(html_entity_decode($this->product->customtitle,ENT_QUOTES)));
} else {
$newTitle .= $this->category->category_name. '';
$document->setTitle(strip_tags(html_entity_decode($newTitle,ENT_QUOTES)));
}