Home
Products
Downloads
Support
Buy
How do I remove the MenuBar in WebMenu if I am not going to use it?
Product Name: WebMenu for PHP
Product Version: 7.0
Document Type: Question
Last Updated: 9/5/2016
Document ID: 63
Answer

To remove of the built-in MenuBar object entirely, set the DisplayMode property on the MenuBar object to '0 - None'.

For example:

$objWebMenu->getMenuBar()->setDisplayMode(Coalesys\WebMenu\DisplayModeConstants::None);

Do not try setting each ShowMenuBarItem property to 'False'. This property is only useful in preventing certain Group objects from appearing on a MenuBar that you are using elsewhere.

Copyright © 2024 Coalesys, Inc. All Rights Reserved.