|
How to Remove Genrated by Joomla |
|
|
|
|
Friday, 15 August 2008 23:15 |
So you want to remove the geneerated tag
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management">
Personaly, I think you should leave the joomla code, I mean after all give credit to the CMS
Many may find the inclusion of this meta tag to be inappropriate for their website. However, determining how to remove it is surprisingly difficult. Here is the recommended solution:
in your template, add the following above the <head> tag:
<?php $this->setGenerator('Anything you want or leave empty'); ?>
thats it!
you can also edit the core joomla file, however this change will be lost if you upgrade the site!
The file you want to edit is called head.php and is found here: /libraries/joomla/document/html/renderer/head.php
you will want to find the following code (~line 167): $strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;
you can turn it off by simply commenting the line with // at the beginning: //$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;
Trackback(0)
 |
|
Last Updated on Friday, 15 August 2008 23:38 |