Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: keyboard on September 03, 2015, 12:45:15 AM

Title: Remove text from the menu....
Post by: keyboard on September 03, 2015, 12:45:15 AM
Hi
Please tell me how I can remove the word  "Donations" from the Menu Bar.....I do not want to remove the mod, I just want to not be able to see the word "Donations" on the Menu Bar.
Please see attachment.


As always, many thanks
Ron
Title: Re: Remove text from the menu....
Post by: br360 on September 03, 2015, 12:54:43 AM
It depends on what mod you are using. Have you tried asking this question in that mod's support topic? You'll probably have much better results getting this answered by the mod author or other people that use that mod.
Title: Re: Remove text from the menu....
Post by: Pipke on September 03, 2015, 04:55:39 AM
In /Sources/Subs.php find: and delete the complete donation array

'menu_action' => array(
'title' => 'text for menu',
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
'sub_menu_action' => array(
'title' => 'text for sub-menu',
'href' => $scripturl . '?action=newaction',
'show' => true,
'is_last'=> true,
),
),
),


But then i guess with the text  'Donations' so, --> 'donations' => array( etc etc

More info here (http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0)
Title: Re: Remove text from the menu....
Post by: Antechinus on September 03, 2015, 05:04:56 AM
Or, if you want a basic CSS hide trick:

Code (Add to the end of index.css) Select
#button_donations {display: none;}
Title: Re: Remove text from the menu....
Post by: Illori on September 03, 2015, 05:20:13 AM
Quote from: Pipke on September 03, 2015, 04:55:39 AM
In /Sources/Subs.php find: and delete the complete donation array

'menu_action' => array(
'title' => 'text for menu',
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
'sub_menu_action' => array(
'title' => 'text for sub-menu',
'href' => $scripturl . '?action=newaction',
'show' => true,
'is_last'=> true,
),
),
),


But then i guess with the text  'Donations' so, --> 'donations' => array( etc etc

More info here (http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0)

that is given the author of that mod did not use a hook to add the button and it is actually found in the subs.php.