Jump to content

How to remove help Button in Admin panel?


jantasingh

Recommended Posts

you can easily do it in bulk

go to /classes/controller/AdminController.php

and comment out (or remove) this line:
 

$this->context->smarty->assign('help_link', 'http://help.prestashop.com/'.$this->context->language->iso_code.'/doc/'.Tools::getValue('controller').'?version='._PS_VERSION_.'&country='.$this->context->country->iso_code);
Link to comment
Share on other sites

  • 3 months later...

In Vekia's approach, it is not an override, but an edit to the core class, so you can still upgrade, but you will lose this change.  But that is an easy change to reapply after an upgrade.

 

You can attempt to do this change via an override of the 'initPageHeaderToolbar' function in the AdminController class.  This allows the core function to execute and add the help link, but then you remove it before the page renders.

public function initPageHeaderToolbar()
{
    parent::initPageHeaderToolbar();

    $this->context->smarty->clear_assign('help_link');   
}
Link to comment
Share on other sites

×
×
  • Create New...