How To Remove The META GENERATOR Tag In Joomla?

Joomla Tips

Most of the Joomla websites has problem with Generator, When we check Source of the any Joomla website it will display Joomla Meta Generator, To avoid this Generator,  Here we are explain few simple steps:

Just Follow These Steps

Step 1:

Open /libraries/joomla/document/html/renderer/head.php file and comment off the following line:

Before Comment

$buffer .= $tab.'<meta name=”generator” content=”‘.htmlspecialchars($document->getGenerator()).'” />’.$lnEnd;

After Comment Code:

//$buffer .= $tab . ‘<meta name=”generator” content=”‘ . htmlspecialchars($generator) . ‘” />’ . $lnEnd;

Once comment done save it and Upload in ti your server using Cpanel ot FTP.


Step 2:

The second method It is not recommended Becacuse it is editing your template Index file

Root Path For File

Open your Index.php file in your favorate editor to edit the code

Add your Domain Name instead of My site.

<?php $this->setMetaData(‘generator’,’my site’); ?>

 Or Use this

add this to the first line of the index.php in the templates.



<?php defined(‘_JEXEC’) or die; $app = JFactory::getApplication(); $layout = $this->params->get<(‘layout’); $tpath = $this->baseurl.’/templates/’.$this->template; $this->setGenerator(null); ?>

Save and Upload to your Server Use FTP or Cpanel


Hope It will Help.


You must be logged in to post a comment Login

Leave a Reply