1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get rid of an App's Tab

Discussion in 'XenForo Questions and Support' started by B~Napier, Aug 20, 2012.

  1. B~Napier

    B~Napier Member

    So an app has a Tab that is automatically there - I don't want it there... I could delete the "extratab" code but that could screw me over in the longrun. Where would I remove the tab this app created?

    http://www.ceintegrator.com < want to remove the "Knowledge Base" tab
  2. B~Napier

    B~Napier Member

    LoL well I figured it out two minutes later... for Wiki you need to edit

    EWRCarta > Listener > Navtabs.php


    $extraTabs['wiki'] = array(
    'title' => new XenForo_Phrase('wiki'),
    'href' => XenForo_Link::buildPublicLink('full:wiki'),
    'position' => 'middle',
    'linksTemplate' => 'EWRcarta_Navtabs',
    'perms' => $perms,
    'index' => $index,
  3. Chris D

    Chris D XenForo Developer Staff Member

    Bear in mind that if you ever update XenCarta, the tab will come back.

    Another way (though slightly more convoluted) is to enable Debug mode.

    You can then access the Development tab in the Admin CP. Then under Code Event Listeners > XenCarta you can disable the nav_tabs listener. This will keep it disabled, and shouldn't be reinstated after updates.

    Remember to turn off Debug mode after.
    CFodder likes this.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I would use CSS:

    Admin CP -> Appearance -> Templates -> EXTRA.css

    .navTabs .navTab.wiki
    	display: none;

Share This Page