Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I want to remove the browser page title which appears on the browser like:

Example Name site - Home.

and be like:

Example Name Site

I know the "Browser Page Title" under "Page Display Options", but if I leave it empty, it uses the Menu Item Title..

I want this omission of browser page title only for the home page.

EDIT: To state it again and clear: What I want is that my 'Browser Title' should be blank and NOT pick up a title from the "Menu Title".

Important: The solution should be working for bilingual (or multilingual) websites, that means "My Website - Home" will be "My Website" and other languages will follow the same rule, i.e. "Mon Website - Accueil" will be "Mon Website".

ps. I'd like a solution for Joomla 2.5 but it would be nice if users with other versions could be helped as well.

share|improve this question

5 Answers

Make sure "Show Page Heading" is set to No under Page Display Options for the Home menu item. That will hide the title as long as you have also set "Show Title" to Hide under Article options of the same menu item.

share|improve this answer
1  
Does not work for me.. my home page is a "category blog" and even if I additionally set "Category Title" to Hide under "Category Options" the page still says "Home - ..." – Tarnschaf Dec 12 '12 at 16:58
@Trev yeaaah, Tarnschaf is right.. If i put show page heading to no, then it removes my h1 tag I have set with the entry "Page Heading" into the page. What I need is that my 'Browser title is set to blank and later it won't pick a title from my 'Menu title'.. – Yannis Dran Jan 25 at 17:08
    <?php
        $title = $this->getTitle();
        $app = JFactory::getApplication();
        //$this->setTitle( $title . ' - ' . $app->getCfg( 'sitename' ) );
        $this->setTitle( 'your funky title' );
    ?>

It is all in here

Try adding if(str_pos($this->getTitle(), "Part of your home page title")!=false)

share|improve this answer
I have the feeling that you didn't read or understand my question.. – Yannis Dran Mar 10 at 17:48
system didn't let edit my commend so I continue here: I especially wrote: 'I want this omission of browser page title only for the home page.' Your solution only partially works.. Thanks anyway. – Yannis Dran Mar 10 at 17:58

The only solution I found until now (Joomla 3.0) is adding the following snippet in your template's index.php file before <jdoc:include type="head" />.

The snippet for my page looks like this:

<?php
if (!strncmp($this->getTitle(), "Home", 4))
{
  $app = JFactory::getApplication();
  $this->setTitle( $app->getCfg( 'sitename' ) );  
}
?>

This basically is a hack that replaces the title if it begins with "Home".

share|improve this answer
What about Joomla 2.5.8?... – Yannis Dran Jan 25 at 17:11
Doesn't work for earlier version of Joomla :/ – Yannis Dran Mar 10 at 17:54

I strongly recommend installing AceSEF or SH404SEF within Joomla. AceSEF is free and does the job while SH404SEF tends to have slightly more features but comes a price. Joomla SEO is ok out of the box but its far from perfect, altering templates is ok but using an extension is far easier and does more SEO than just what you asked.

share|improve this answer

Title Manager can do that: http://extensions.joomla.org/extensions/site-management/seo-a-metadata/title-management/3521 Only show site name on home page: Yes

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.