SEO core hack: [name of page - site name] in title - Joomla! Forum - community, help and support
a lot of people have been recognizing default title in joomla! needs enhanced since seo requires make titles flexible. example on fingers on page what joomla?:
deault page title what joomla? , site name joomla!.
we'll next title: what joomla? | [joomla! (page name | website name)
it's easy do.
1. open file libraries\joomla\document\html\renderer\head.php, find line #53:
and add next line:
so, find line:
and replace on next one:
that's all.
deault page title what joomla? , site name joomla!.
we'll next title: what joomla? | [joomla! (page name | website name)
it's easy do.
1. open file libraries\joomla\document\html\renderer\head.php, find line #53:
code: select all
function fetchhead(&$document)
{
and add next line:
code: select all
global $mainframe;
$sitename = $mainframe->getcfg('sitename');
so, find line:
code: select all
$strhtml .= $tab.'<title>'.htmlspecialchars($document->gettitle()).'</title>'.$lnend;
and replace on next one:
code: select all
$strhtml .= $tab.'<title>'.htmlspecialchars($document->gettitle()).' - '.$sitename.'</title>'.$lnend;
that's all.
Comments
Post a Comment