in Content Management, Hacks, Joomla

Joomla 1.5 hack – replace the META Generator tag

In Joomla 1.5, the system automatically creates a META Generator tag that you might want to change or hide.

The default tag looks like this:

<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />

There is no way within Joomla to change or remove this tag, so you have to put a little line of PHP in your template.

Edit your template and look for this line:

<jdoc:include type="head" />

Just above that line, paste in the following:

<?php $this->setMetaData('generator','my site'); ?>

The two lines together should look like this:

<?php $this->setMetaData('generator','my site'); ?>
<jdoc:include type="head" />

In the above code, substitute your custom generator tag value in place of the words my site.

Because this hack is in your template, you don’t have to worry about the next upgrade to Joomla overwriting hacked core files.

Thanks to gabha.net for showing the way.