rating rating rating rating rating rated by 0 please register or login to rate

Removing the Joomla generator tag

Attention: open in a new window. PDFPrintE-mail

You might be inclined to remove the content generator tag that by default shows up in the source code like this:

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

Most likely you want to remove this line because you don't really want to announce the framework your site is running on (although this can be determined by other tell-tales such as the module/component inclusion).

The task is indeed quite simple:

In the index.php file of your template right at the top where the template is checking for a valid entry point and includes the following php code:

defined('_JEXEC') or die();
?>

add following line right before the closing tag:

 defined('_JEXEC') or die();
$this->setGenerator('');
?>

this will result in the following meta tag

<meta name="generator" content="" />

obviously you can the change that empty string in the setGenerator function to anything you like...

PS: I'm unclear as to the impact the generator tag has on SEO... if you do, please let me know!

Joomla Administration