lightbulb Joomla SEO: how remove Keywords, Rights and Robots Meta Tags

Topic Rating


08 Nov 2017 01:50 - 08 Nov 2017 01:55 #1 by Trony

  • Administrator
  • Administrator
  • Location: Roma
  • Time Zone: UTC +2:00
  • Local Time: 11:16

  • Posts: 939
  • Profile views: 3260
  • Thank you received: 8

  • Register Date: 01 Jul 2008
  • Last login: 22 Sep 2021 22:50
  • Joomla SEO: how remove Keywords, Rights and Robots Meta Tags was created by Trony



    Many SEO Articles and Tools (for Example seocentro.com ) recommend removing the Meta Tag Keywords.
    In Joomla, if You don't want to use Component or Plugin, You can use this Class.

    At Work


    Edit index.php of Your Template and at top You put this:
    <?php
    $doc = JFactory::getDocument();
    $headData = $doc->getHeadData();
    unset($headData['metaTags']['name']['keywords']);
    $doc->setHeadData($headData);
    ?>

    FusoElektronique Usage


    I don't use Rights and Robots Meta Tags and so I have removed them:
    <?php
    $doc = JFactory::getDocument();
    $headData = $doc->getHeadData();
    unset($headData['metaTags']['name']['rights']);
    unset($headData['metaTags']['name']['robots']);
    unset($headData['metaTags']['name']['keywords']);
    $doc->setHeadData($headData);
    ?>
    Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover. Marxist.
    Sono Il Re sul Carro Danzante. Attraversando La Città Getto Via I Coriandoli Della Vostra Tristezza Regalando Passione Ed Estasi Nei Vostri Occhi.
    Follow Trony on: FusoElektronique | Facebook | Twitter | Soundcloud
    Last edit: 08 Nov 2017 01:55 by Trony.

    Please Log in or Create an account to join the conversation.

    Moderators: Trony

    You might also be interested...

    FusoElektronique - Pure Electronic Music.

    Community and Web Radio of Electronic Music since July 2008. Rome, Italy

    Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) 2021.

    About us | Our team | Cookie Policy | Privacy Policy | Terms and Conditions | Contact us | Sitemap