-
AuthorPosts
-
vipcory Friend
vipcory
- Join date:
- June 2011
- Posts:
- 84
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 18
- Thanked:
- 1 times in 1 posts
May 16, 2012 at 6:19 am #177115I read many different ways of doing this… does anyone know the right way to do it for j2.5?
remove the entire tag:
meta name=”generator” content=”Joomla! – Open Source Content Management”thanks
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 17, 2012 at 7:31 am #453386Hi vipcory,
There are two ways you can do it:
1. The easy way is: go to Extensions >> Template Manager open your default template >> Edit main page template
it will open index.php file:
// no direct access
JFactory::getDocument()->setGenerator('Your own words or leave it empty'); <<< you add this line
defined ( '_JEXEC' ) or die ( 'Restricted access' );
<?php $this->setGenerator('Your own words or leave it empty'); ?>2. 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 meta name=”generator” and you will see:
if ($generator)
{
$buffer .= $tab . '<meta name="generator" content="' . htmlspecialchars($generator) . '" />' . $lnEnd; <<< add // to the beginning of this line
}Save and clean cache.
Hope this helps!
April 28, 2013 at 2:08 pm #491240I have the ja-university theme and have tried the second way and it doesn’t work for me, I added
// if ($generator)Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 4, 2013 at 3:52 am #491858Hi Saguaros,
Thanks that worked!
AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 3 voices, and was last updated by tim_aus 11 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
The right way to Remove Meta Generator tag in j2.5
Viewing 5 posts - 1 through 5 (of 5 total)