meta-tags.jpgThe default Meta Generator Tag in Joomla 1.5 reads:

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


 
 The Generator Meta Tag states the application used to generate the pages.


Template edit method:

This is the preferred method as it will not alter the core files which ensures that future Joomla updates will not overwrite your edit.

Edit your template's index.php and above the <jdoc:include type="head" /> insert

<?php $this->setMetaData('generator','Your text here'); ?>

so it looks like

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

 

$this->setGenerator(null); can be used instead of $this->setMetaData('generator','Your text here'); to leave the generator content value empty. (<meta name="generator" content="" />)




Core files edit method:

This would be the method to use if you want to completely remove the generator tag, but beware that Joomla updates might overwrite the edit in the future and it would have to be re-done.


File to edit:

libraries/joomla/document/html/renderer/head.php

Search file for this code (
around line 84 ) (code on two lines here for display purposes)
$strHtml .= $tab.'<meta name="generator" 
content="'.$document->getGenerator().'" />'.$lnEnd;
To comment out put two slashes in front like this:

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

Edit value of Joomla Meta Generator Tag

File to edit:

libraries/joomla/document/document.php

Search file for this code (
around line 86 )

var $_generator = 'Joomla! 1.5 - Open Source Content Management';


proudly-canadian-flag.gif
Best Canadian Web Host for Joomla



Joomla Web Hosting Canada RSS Feed