Remove 'Help' button from menu

Mick in Tutorials on Feb 02, 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.



Tagged with: smf help button remove 


Mick

Mick G

idesignsmf.com

    

Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF 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 and has a weakness for Tacos and Pizza.


0 Comments




Latest Discussions

Join the conversation



  Professional & Impressive. We provide top quality free SMF themes with excellent support.