Home arrow All Articles & News arrow Joomla TITLE tag
Joomla TITLE tag PDF Print E-mail
Wednesday, 21 June 2006

n order to change TITLE tag and/or remove the word HOME from titles you willll need to edit the Joomla.php file.

 

Joomla 1.0.8 and 1.0.12: 

 

Replace function setPageTitle to this one:

function setPageTitle( $title=null ) {
        if (@$GLOBALS['mosConfig_pagetitles']) {
            $title = trim( htmlspecialchars( $title ) );
            $title = stripslashes($title);

if ($title == 'Home')
{
 $this->_head['title'] = $GLOBALS['mosConfig_sitename'];
}
else
{
 $this->_head['title'] = $title;
}

        
        }
    }

This code can be adjusted to your needs. For example you may want to add or remove $GLOBALS[’mosConfig_sitename’] from the else clause.

Last Updated ( Friday, 25 May 2007 )
 
< Prev   Next >