2

I'm trying to erase the button on the homepage, but to delete (red) also clears other options other menus (green), I would like to know how to delete or hide the button (red) without affecting the other buttons (green ).

Any suggestions?

------> Image

David Noriega
  • 153
  • 1
  • 11

1 Answers1

3

You can override the method initPageHeaderToolbar() of the controller AdminDashboardController.

Put this file under /override/controllers/admin/AdminDashboardController.php:

<?php

class AdminDashboardController extends AdminDashboardControllerCore {
    public function initPageHeaderToolbar()
    {
        parent::initPageHeaderToolbar();
        unset($this->page_header_toolbar_btn['switch_demo']);
    }
}

Then delete the file /cache/class_index.php and the button will disappear from your Dashboard.

Florian Lemaitre
  • 5,905
  • 2
  • 21
  • 44