SMF Support > SMF 2.0.x Support
Hide login and Search tabs
(1/1)
Guillelmus:
Hello,
I'd like to hide Login and Search tabs from my theme, since these are found as buttons on the theme. Which file I need to edit to accomplish this?
Thank you!
Link to my forum: http://uskojaelama.net/
MovedGoalPosts:
You can try editing your subs.php file (it's in Sources). This is where all the standard menu links are held. Look for the function setupMenuContext towards the end of the file.
Make a backup copy before you start to edit, just in case whatever you do breaks stuff.
Guillelmus:
Thanks for the reply. I commented out the following text:
--- Code: --- 'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),
--- End code ---
This did hide the search tab, but it resulted in lots of errors in the forum log. How should I do it in order to prevent the errors?
Arantor:
What errors exactly?
Navigation
[0] Message Index
Go to full version