Remove 'Help' button from menu

in Tutorials on 02 Feb 2013


By default SMF does not have the ability to hide buttons from the main menu via admin page. Sometimes we dont want to show all buttons or we have created new linked buttons somewhere else. ie footer or side block.

Lets use the 'Help' button for example. To hide buttons from the menu, simply open:

Sources/Subs.php, find:

'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),


Replace with:

'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => false,
'sub_buttons' => array(
),
),


We just changed true to false. Yes, that simple.



idesignSMF Team
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF.com and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time.

idesignSMF.com | SimpleMachines.org



0 Comments


rocket_launch

Awesome Support. Download our themes, you also get theme support.