How to remove meta tag “generator” in Joomla 1.5

On a page that is generated by Joomla, by default you will always see a meta tag like following

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

How can you remove it generator meta tag from Joomla 1.5?

There are two ways you can do it.

The easy way is go to Extensions >> Template Manager open your default template and click on “Edit HTML” add following one line of code anywhere between <head> and </head>

<?php $this->setGenerator('Your own words or leave it empty'); ?>

Done

The second way will completely remove the generator meta tag from Joomla
Open /libraries/joomla/document/html/renderer/head.php with your favor editor
search for “generator” (around line 83-84).
add // to the beginning of the line

$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;</meta>

becomes

//$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;</meta>

Save and Done

4 thoughts on “How to remove meta tag “generator” in Joomla 1.5

Leave a Reply