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:

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

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support