0
Welcome Guest! Login
0 items Join Now

<meta name="generator"

    • RMC's Avatar
    • RMC
    • Rocketeer
    • Posts: 72
    • Thanks: 0

    <meta name="generator"

    Posted 14 years 11 months ago
    • How do I edit this meta name line below?
      <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
    • Terp's Avatar
    • Terp
    • Elite Rocketeer
    • Posts: 1720
    • Thanks: 23

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • You can add this above the < head > tag in your template file:
      <?php $this->setGenerator(''); ?>

      You can put anything you want between the '', or leave it blank.

      Or, you can change the file that generates the generator, which is the route I usually take to reove it completely:

      .../libraries/joomla/document/html/renderer/head.php

      On or around line 83, comment out the following line like this (add the //):
      //$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;
    • RMC's Avatar
    • RMC
    • Rocketeer
    • Posts: 72
    • Thanks: 0

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • where is this wriiten? within head.php
      Joomla! 1.5 - Open Source Content Management
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • I would go for Terps first advice
      <?php $this->setGenerator('your text'); ?>

      For example in nexus ..

      TEMPLATE-ROOT/templates/rt_nexus_j15/index.php (right after the <head>-tag)
      or
      TEMPLATE-ROOT/templates/rt_nexus_j15/index.php/rt_head_includes.php
    • Last Edit: 14 years 11 months ago by Henning.
    • RMC's Avatar
    • RMC
    • Rocketeer
    • Posts: 72
    • Thanks: 0

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • Thank you for your reply, but the file that generates "Joomla! 1.5 - Open Source Content Management" text is what i'm looking for and it's not written within the "rt_head_includes.php" or "head.php" files.

      Help needed!
      r
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • No it does not ... you are doing something wrong I guess ...
      YOU HAVE TO ADD THIS LINE OK?

      AFTER THE HEAD TAG OK?
      <?php $this->setGenerator('your text'); ?>

      If that line is there Joomla replaces the standard-text with "your text" OK?

      Ill send you an example via PM ...

      btw.
      <meta name="keywords" content="joomla, Joomla" /> and
      <meta name="description" content="Joomla! - the dynamic portal engine and content management system" />

      can be edited via global configuration ...
    • Last Edit: 14 years 11 months ago by Henning.
    • Terp's Avatar
    • Terp
    • Elite Rocketeer
    • Posts: 1720
    • Thanks: 23

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • Terp wrote:
      You can add this above the < head > tag in your template file:
       
      <?php $this->setGenerator(''); ?>
       

      You can put anything you want between the '', or leave it blank.

      Or, you can change the file that generates the generator, which is the route I usually take to reove it completely:

      .../libraries/joomla/document/html/renderer/head.php

      On or around line 83, comment out the following line like this (add the //):
       
      //$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;
       
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • or you can follow 2nd advice ... but before hacking the core try his first advice ... 8)
    • Terp's Avatar
    • Terp
    • Elite Rocketeer
    • Posts: 1720
    • Thanks: 23

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • RMCTV wrote:
      Thank you for your reply, but the file that generates "Joomla! 1.5 - Open Source Content Management" text is what i'm looking for and it's not written within the "rt_head_includes.php" or "head.php" files.

      I am not sure why you would want to edit the file that produces the laguage; either you want to 1.) remove it completely (my second solution), or 2.) edit the language, in which case you would want to follow the first suggestion...or keep hacking the core each and every time you upgrade Joomla to the latest version.

      Nonetheless, here you go:

      .../libraries/joomla/document/document.php
            var $_generator = 'Joomla! 1.5 - Open Source Content Management';
    • RMC's Avatar
    • RMC
    • Rocketeer
    • Posts: 72
    • Thanks: 0

    Re: <meta name="generator"

    Posted 14 years 11 months ago
    • Thank you so much Terp, you've really made my day. Well appreciated!

      FYI: Once I’ve almost finished the site, I will post the url link for Rockettheme users evaluation and maybe a bit more help if possible.

      I’m fast becoming a massive Joomla - Rockettheme fan

      Regards
      RMC
      (1st Time Joomla User)

Time to create page: 0.060 seconds