How to change this? <meta name="Generator" content="Joomla!

Discuss the development and implementation of Joomla! 1.0.x templates here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Andrejj
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 179
Joined: Mon Feb 20, 2006 10:53 pm

How to change this? <meta name="Generator" content="Joomla!

Postby Andrejj » Tue Jun 03, 2008 8:10 pm

How to change this? <meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved." />

X-Bumble
Joomla! Explorer
Joomla! Explorer
Posts: 417
Joined: Sat Feb 02, 2008 12:39 pm
Location: England

Re: How to change this? <meta name="Generator" content="Joomla!

Postby X-Bumble » Thu Jun 05, 2008 1:04 pm

You can amend the Meta tags inside your control panel. Click on Global Settings and they are in there.
Michael Edwards - UK Web developer and Designer - http://www.michaeledwards.me.uk

Andrejj
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 179
Joined: Mon Feb 20, 2006 10:53 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby Andrejj » Thu Jun 05, 2008 5:49 pm

Hi, well what i can see you can only set the in under the button "Metadata"
Global Site Meta Description and Global Site Meta Keywords

The content as i describe are not there to change?

User avatar
MikeHell
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Tue Mar 13, 2007 12:52 am
Contact:

Re: How to change this? <meta name="Generator" content="Joomla!

Postby MikeHell » Fri Jun 06, 2008 11:15 am

Look in the file includes/frontend.php - on line 195. If you just want to remove it then you can comment it out.

// $mainframe->addMetaTag( 'Generator', $_VERSION->PRODUCT . ' - ' . $_VERSION->COPYRIGHT);
:: http://xsitech.com/ - Custom Web Designs - Joomla Templates ::
:: http://blocklistpro.com/ - Blocklist Internet Security Solutions ::

lucard
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Jan 24, 2008 1:29 pm
Location: Amsterdam, Netherlands

Re: How to change this? <meta name="Generator" content="Joomla!

Postby lucard » Sat Jun 28, 2008 5:47 pm

MikeHell wrote:Look in the file includes/frontend.php - on line 195. If you just want to remove it then you can comment it out.

// $mainframe->addMetaTag( 'Generator', $_VERSION->PRODUCT . ' - ' . $_VERSION->COPYRIGHT);


And a better way would be.

Goto your template and add the following:

Code: Select all

$document = &JFactory::getDocument();
/* @var $document JDocument */
$document->setGenerator('');

This will not remove the generator tag but it will clear the contents. The big advantage is when you update joomla to a newer version ( which will happen in the future ) you don't have to redo all your changes in the code.

Oops..... Errmmm this works in J!1.5 I don't know if it will work in J!1.0

blueskyairways
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jul 22, 2008 12:39 am

Re: How to change this? <meta name="Generator" content="Joomla!

Postby blueskyairways » Tue Jul 22, 2008 12:42 am

Lets just assume I have no idea which file to update inthe teplate with this code....could you point me in the right direction?

Thanks

elrafei
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Tue Apr 10, 2007 3:10 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby elrafei » Fri Oct 24, 2008 12:18 am

this solved my problem

Look in the file includes/frontend.php - on line 195. If you just want to remove it then you can comment it out.

// $mainframe->addMetaTag( 'Generator', $_VERSION->PRODUCT . ' - ' . $_VERSION->COPYRIGHT);


thanks for help

Andrejj
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 179
Joined: Mon Feb 20, 2006 10:53 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby Andrejj » Fri Nov 14, 2008 5:44 pm

Has the includes/frontend change name in the latest joomla 1,5?
i can´t find it?

ccsnv
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jun 19, 2008 6:46 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby ccsnv » Wed Dec 03, 2008 10:58 pm

Has the includes/frontend change name in the latest joomla 1,5?
i can´t find it?


Try to edit the head.php in this location: /libraries/joomla/document/html/renderer/head.php.

ccsnv
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jun 19, 2008 6:46 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby ccsnv » Wed Dec 03, 2008 11:00 pm

it is on line: 83
Before:

Code: Select all

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


After:

Code: Select all

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


Just comment it out "//"

Andrejj
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 179
Joined: Mon Feb 20, 2006 10:53 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby Andrejj » Thu Dec 04, 2008 11:15 am

Before i change this, Is there a change that 404SEF can change this automaticly ?? So i don´t have to do this?

User avatar
nyak
Joomla! Intern
Joomla! Intern
Posts: 56
Joined: Mon Nov 10, 2008 7:39 am
Location: Indonesia

Re: How to change this? <meta name="Generator" content="Joomla!

Postby nyak » Mon Dec 08, 2008 7:39 am

Hi All,
Is there a problem a rise when we remove the code ?
Such in upgrade to newer version ?

ccsnv
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jun 19, 2008 6:46 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby ccsnv » Mon Dec 08, 2008 2:26 pm

Havent had to upgrade this install yet. The only thing that I can think of is you might have to go back in and re-comment out that line. I am running 1.5.7 and dont have any issues.

njjacob
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 144
Joined: Fri Oct 13, 2006 3:58 am
Contact:

Re: How to change this? <meta name="Generator" content="Joomla!

Postby njjacob » Tue Dec 09, 2008 3:27 pm

I just did

$document = &JFactory::getDocument();
/* @var $document JDocument */
$document->setGenerator('');

and it works perfectly and like he said, when u update u dont ahve to worry about changing the code.

User avatar
trichnosis
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Wed May 17, 2006 4:15 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby trichnosis » Tue Dec 09, 2008 10:49 pm

you can also apply the joomlawork sef patch. it will remove the generator tag

myaviation
Joomla! Explorer
Joomla! Explorer
Posts: 335
Joined: Thu Nov 27, 2008 8:18 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby myaviation » Wed Dec 10, 2008 8:44 pm

lucard wrote:
MikeHell wrote:Look in the file includes/frontend.php - on line 195. If you just want to remove it then you can comment it out.

// $mainframe->addMetaTag( 'Generator', $_VERSION->PRODUCT . ' - ' . $_VERSION->COPYRIGHT);


And a better way would be.

Goto your template and add the following:

Code: Select all

$document = &JFactory::getDocument();
/* @var $document JDocument */
$document->setGenerator('');

This will not remove the generator tag but it will clear the contents. The big advantage is when you update joomla to a newer version ( which will happen in the future ) you don't have to redo all your changes in the code.

Oops..... Errmmm this works in J!1.5 I don't know if it will work in J!1.0


where do you put this in the template? where in the code exactly? in the body.. before the body??

me lost.

dynamicyuva
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Nov 16, 2008 9:40 pm
Location: India

Re: How to change this? <meta name="Generator" content="Joomla!

Postby dynamicyuva » Sat Mar 14, 2009 6:58 pm

myaviation wrote:
lucard wrote:
MikeHell wrote:Look in the file includes/frontend.php - on line 195. If you just want to remove it then you can comment it out.

// $mainframe->addMetaTag( 'Generator', $_VERSION->PRODUCT . ' - ' . $_VERSION->COPYRIGHT);


And a better way would be.

Goto your template and add the following:

Code: Select all

$document = &JFactory::getDocument();
/* @var $document JDocument */
$document->setGenerator('');

This will not remove the generator tag but it will clear the contents. The big advantage is when you update joomla to a newer version ( which will happen in the future ) you don't have to redo all your changes in the code.

Oops..... Errmmm this works in J!1.5 I don't know if it will work in J!1.0


where do you put this in the template? where in the code exactly? in the body.. before the body??

me lost.



i am running 1.5.9
See it below where to put it.


// SEO SECTION //

$seo = $this->params->get ("seo", "Joomla Software solutions Template"); # JUST FOLOW THE TEXT
$tags = $this->params->get ("tags", "Joomla Software, Joomla Templates, Youjoomla"); # JUST FOLOW THE TEXT

$slide_right = $this->params->get ("slide_right", "Watch Video");
$slide_bottom = $this->params->get ("slide_bottom", "Popular News");
#DO NOT EDIT BELOW THIS LINE
define( 'TEMPLATEPATH', dirname(__FILE__) );
include( TEMPLATEPATH.DS."settings.php");
include( TEMPLATEPATH.DS."styleswitcher.php");
require( TEMPLATEPATH.DS."suckerfish.php");

Code: Select all

[b]$document = &JFactory::getDocument();
/* @var $document JDocument */
$document->setGenerator('');[/b]


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>





its ok this resolves the prob. but i`ve another question,

if u look at the code now u`ll find this

Code: Select all

<meta name="generator" content="" />


does it has any negative effect,

or better would be if someone explain the purpose of this meta tag in joomla

Mello
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Jan 25, 2008 8:12 am
Location: Kuwait
Contact:

Re: How to change this? <meta name="Generator" content="Joomla!

Postby Mello » Wed Jun 03, 2009 10:03 am

But what if I need to change the author code?
Mestslm Rady Be Tab3ek, 3sfor Fe El-7elm Masaknk :: Me7tar 3la Shat Shafayfk, Dh 3tor El Koon Men Ward
Rosheha Nasyeny Meen ANA!
My Hosting Company : http://www.sz4h.com

Madus
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Oct 09, 2009 1:24 pm
Location: Tamworth, UK
Contact:

Re: How to change this? <meta name="Generator" content="Joomla!

Postby Madus » Fri Oct 09, 2009 1:28 pm

Change this in the head.php file -

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

To this -

$strHtml .= $tab.'<meta name="generator" content="YOUR TEXT HERE" />'.$lnEnd;


To change (or add) a "author" tag... Copy above and paste it directly below, then change it to look like this

$strHtml .= $tab.'<meta name="author" content="YOUR TEXT HERE" />'.$lnEnd;


:D hope that helps
Please read forum rules regarding signatures: viewtopic.php?t=65

Ward123
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 18, 2008 3:17 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby Ward123 » Sat Oct 10, 2009 3:59 am

Edit the index.php file of the default template on your site.  The template should have a block of PHP at the top of the file starting with <?php and closing with ?>.  Find this block and just before the closing PHP brace, insert the following lines of code:

// Remove the generator meta tag
$this->setGenerator(null);


Or to change it use:

// Change the generator meta tag
$this->setGenerator('My Text here');


Upgrade proof... if you don't change your template

kamleshpatidar
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon May 05, 2008 8:18 am

Re: How to change this? <meta name="Generator" content="Joomla!

Postby kamleshpatidar » Tue Jan 05, 2010 6:40 am

Add to the ward123 reply, you can set other meta tags as per your needs. For Example Robots, author contact, submission & all of that what do you want....
Just add your meta tag code after this code in your template/index.php

Code: Select all

<jdoc:include type="head" />


Code you have to add

Code: Select all

<?php
         $this->setMetaData('robots', 'ALL' );
         $this->setMetaData('author','www.kamleshpatidar.com');
         $this->setMetaData('language','English');
         $this->setMetaData('submission','http://www.thamesmarketing.com');
         $this->setMetaData('contact',[email protected]');
         $this->setMetaData('format','text/html');
         $this->setMetaData('document-classification','Website Marketing & Software Development Company');
         $this->setMetaData('document-distribution','Global');
         $this->setGenerator('');
?>



Thanks,
Kamlesh Patidar

xalvinx
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Dec 31, 2009 5:59 am

Re: How to change this? <meta name="Generator" content="Joomla!

Postby xalvinx » Sun Jan 10, 2010 3:43 am

open " includes/joomla/document/document.php "
in line between 80-90 find text var $_generator = 'Joomla 1.5 ! Open Source Content Management.';

change it !

tstevenson
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Mon Aug 03, 2009 12:04 am

Re: How to change this? <meta name="Generator" content="Joomla!

Postby tstevenson » Wed Jan 20, 2010 10:18 am

Madus,
Thank you, your code works great.

walidplus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jan 29, 2010 2:17 am
Contact:

Re: How to change this? <meta name="Generator" content="Joomla!

Postby walidplus » Fri Jan 29, 2010 3:15 am

hi,
becareful changing joomla core can make you troubles later in upgardes.
this question is posted before in the forum, u should take a look before asking.
here is the answer of brian. (the joomla specialist)

brian a écrit:
There is a much easier way to do this without any "hacks" to the core joomla files. It's in my joomla hidden secrets presentation and only requires you to make a small modification to your site template.

In the <head> section of your template insert the following code

Code:
$this->setGenerator(null);


to remove the generator tag

or to be more funky

Code:
$this->setGenerator('Drupal');


You should NEVER hack core joomla files as you will potentialy lose any hacks when you do an upgrade
http://PSD.NEW.FR ---> Photoshop brushes & Graphics

http://tutoplus.[URL banned].com ---> Tutorials for photoshop, 3Ds Max, C4D, flash,...

AlvinAVP
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Oct 20, 2009 7:01 pm

Re: How to change this? <meta name="Generator" content="Joomla!

Postby AlvinAVP » Thu Mar 25, 2010 10:01 pm

Madus wrote:Change this in the head.php file -

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

To this -

$strHtml .= $tab.'<meta name="generator" content="YOUR TEXT HERE" />'.$lnEnd;


To change (or add) a "author" tag... Copy above and paste it directly below, then change it to look like this

$strHtml .= $tab.'<meta name="author" content="YOUR TEXT HERE" />'.$lnEnd;


:D hope that helps



This is Awesome! It works on my site. Thanks!!

User avatar
zenith20
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Aug 11, 2009 8:30 am

Re: How to change this? <meta name="Generator" content="Joom

Postby zenith20 » Tue May 18, 2010 2:01 pm

Madus wrote:Change this in the head.php file


so, i found some head.php, could you please tell me which one?! besides this, they're read only files (i'm editing it on my localhost)

thank you in advance,
Zenith

vhin3125
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Aug 28, 2010 12:31 pm
Location: PH
Contact:

Re: How to change this? <meta name="Generator" content="Joom

Postby vhin3125 » Tue Aug 31, 2010 3:46 pm

Madus wrote:Change this in the head.php file -

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

To this -

$strHtml .= $tab.'<meta name="generator" content="YOUR TEXT HERE" />'.$lnEnd;


To change (or add) a "author" tag... Copy above and paste it directly below, then change it to look like this

$strHtml .= $tab.'<meta name="author" content="YOUR TEXT HERE" />'.$lnEnd;


:D hope that helps


Thanks to this! I am a new joomla! user and I find this one a bit tricky yet fun to do :)
Anyway, does it contribute to SEO if you change the

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


?
Discover different aloe vera uses and what it can do to improve your health condition. Visit http://myaloeverauses.com

User avatar
jjpedersen
Joomla! Intern
Joomla! Intern
Posts: 84
Joined: Fri Mar 16, 2007 9:47 pm

Re: How to change this? <meta name="Generator" content="Joom

Postby jjpedersen » Mon Nov 15, 2010 7:37 pm

I also highly recommend this little plugin that will allow you change the default generator meta tag from meta name="generator" content="Joomla! 1.5 - Open Source Content Management" to anything you like!

http://extensions.joomla.org/extensions/site-management/seo-a-metadata/14368

reall
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Aug 17, 2010 11:29 pm
Location: Ukraine
Contact:

Re: How to change this? <meta name="Generator" content="Joom

Postby reall » Sun Nov 28, 2010 7:59 am

jjpedersen wrote:I also highly recommend this little plugin that will allow you change the default generator meta tag from meta name="generator" content="Joomla! 1.5 - Open Source Content Management" to anything you like!

http://extensions.joomla.org/extensions/site-management/seo-a-metadata/14368


Thank you so much! ;)
WE LOVE DOWNLOAD
http://www.mcsegrup.com
http://www.microsoftfan.com
WE LOVE JOOMLA!

diskmanjd
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 02, 2011 8:04 am

Re: How to change this? <meta name="Generator" content="Joom

Postby diskmanjd » Tue Feb 15, 2011 1:28 am

Simply add the following line inside the HEAD tags of your Template index.php file:

<?php $this->setGenerator('Change this to whatever you like or leave it blank'); ?>

This way IF you upgrade your CMS core the template file is not affected by the upgrade.


Return to “Templates & CSS - 1.0.x”

Who is online

Users browsing this forum: No registered users and 2 guests