|
How to remove meta tag "generator" in Joomla |
|
|
|
|
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;
becomes
//$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;
Save and Done
|