voodish logo
tweet rss book of faces Linked In

Add site name to title Joomla

In an effort to add some more depth to Joomla site titles here is an easy way of adding your site name to each page.

This simply replaces a line of code in your view.html.php file

Step 1

Open /components/com_content/views/article/view.html.php

Step 2

Locate: $document->setTitle( $params->get( ‘page_title’ ) );
Around line 121
Replace with: $document->setTitle($article->title . ‘ | ‘ . $mainframe->getCfg(’sitename’));

Upload and test.
That’s it all done :)

Related Articles

Comments RSS Feed

No Comments Yet

You can be the first to comment!

Leave a comment