Joomla Tutorials
How To
Changing order of site title and page title
| Changing order of site title and page title |
| Joomla Tutorials - How To | |||||||
| Written by Tony Lindskog | |||||||
| Saturday, 29 March 2008 | |||||||
|
By default Joomla uses "sitename - page title" as the title tag for all articles.
![]() This is for 1.0.15 only |
|||||||
| Original title: | Joomla Views - Changing order of site title and page title |
| Fixed title: | Changing order of site title and page title - Joomla Views |
Looking at the example above, you will notice that the original example uses the site name first and then adds the page title to the end. Unless you have a well-known brand that gets a lot of direct searches, what brings your visitors comming will be the content of your web page content and title.
This is what the fixed title does, it puts the important page title (which should be an abbreviated summary of the article) first and then adds the site name at the end.
The Solution
This solution is for 1.0x and has only been personally tried by me on Joomla 1.0.15.
You need to edit the source code in file: /includes/joomla.php; on or around line 507, replace this:
| $this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename']; |
with this...
| $this->_head['title'] = $title ? $title .' - '. $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename']; |
All this does is switch the order of the information in the title tag and nothing else.
Kudos and credit for this solution goes to: Chette.com
There is a 1.5x ONLY extension that does the same thing without source changing that looks promising Title Manager; however, I have no personal experience with it.
NOTE: Check out the JoomlAtWork's SEF PATCH Extended review that is a much more advanced option and very affordable.

| < Prev |
|---|


