Feedback Form
Home Open Source Tips and Tutorials How to remove the meta generator tag from Joomla 1.5?
Saturday, 21 March 2009 19:27

Within each HTML page that is generated by Joomla is included a meta tag:

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

First of all, I love Joomla. I use it since 2005 when a group of Mambo developers (the core team) left Mambo and started Joomla .

So I am really big Joomla fan. But I think this is not the best way to advertise that my site is realized with the Joomla framework. So I removed this meta tag.

If you also want to remove it, you can do it manually or with an extension.

Manual ways

I know two manual ways:

1, In your template, add the following line above the <head> tag:

<?php $this->setGenerator('Anything or leave empty'); ?>

Done! Note, if you change your template add this line to the new template.

 

2, Edit the core joomla file. Open /libraries/joomla/document/html/renderer/head.php and find the following line (around line 83-84):

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

Done! Note, this change will be lost if you upgrade Joomla.

Ways with extensions

Various Joomla extensions do the work instead of you. My favourite is sh404sef.

But Tag Meta or SEO/SEF Patch also does the work.

Tags: Joomla - SEO - security - meta tag
Last Updated ( Thursday, 18 June 2009 13:45 )
 

Visitor Map

Recent Readers