Friday, 06 March 2009

#62 - How to remove / change "meta generator Joomla! 1.5 - Open Source Content Management"

Although (as you can probably tell), we have a love affair with the Joomla CMS, for various reasons, some times you don't want to show that your website is driven by Joomla. Something which will give away your content management system is the meta generator tag. Fortunately, it is very easy to remove this. 

There are two ways of doing this. The first way is to hack the core and remove the lines which generate this code. However, this will break when you perform an upgrade, and thus we will not even suggest it here ;) The second is to insert a very simple line in the head section of your Joomla template:

<?php $this->setGenerator('My Company Ltd or any generator which you prefer'); ?> 

This simple line will change the generator tag to anything which you put in between the quotes. 

The following is how it will look on the default rhuk_milkayway template:

...<jdoc:include type="head" />
<?php $this->setGenerator('My Company Ltd or any generator which you prefe'); ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />...

Another trick to customize your Joomla website :) 

 

 

Comments
Search RSS
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Friday, 06 March 2009 )