| Adding a Prefix to All Page Titles in Joomla! |
| Sunday, 21 September 2008 08:55 | |
|
For our web site and blog, we wanted all of our page titles to start with a prefix that said "Data Jelly". We use Joomla! 1.5 as our Content Management System (CMS), so we couldn't just edit every page to add it in. There doesn't appear to be a native option to do this in the administration, but apparently there are some plugins that can help. However, in our experience, these plugins have been hit or miss, so we decided to simply try to edit the Joomla! source files ourselves. You've got to love open source software! We used grep to search around and find the right place to edit. To save you some time, it seems the correct file is located under: libraries/joomla/document/html/renderer/head.php
Edit this file and search for the <title> tag, it should be around line 86. You can then add a prefix or suffix by editing this line. That's all there is to it! The one caveat is that if you ever upgrade your version of Joomla!, these changes will be lost. However, the steps to edit the title are hopefully easy enough that you can simply re-apply your changes.
|




