Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: CyanProductions on January 04, 2015, 12:14:12 am

Title: [Code] Hide Tabs (Compacted)
Post by: CyanProductions on January 04, 2015, 12:14:12 am



This code will be able to hide any tab you want.


Instructions:
1) Go to your Headers & Footers  http://FORUM.createaforum.com/index.php?action=admin;area=style;sa=headers; (http://forum.createaforum.com/index.php?action=admin;area=style;sa=headers;)


2) This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/ (http://support.createaforum.com/5/jquery-v1-8-update/)


3) Copy and paste this code in your Footers:


Quote
<script>var tab="X"; $("li#button_"+tab).remove()</script>


4) Replace the red X with one of the following:
Actual Tab                               Replace X with
Home                                       home
Help                                         help
Search                                     search
Admin                                      admin
Moderate                                 moderate
Profile                                      profile
My Messages                           pm
Calendar                                  calendar
Arcade                                     arcade
Gallery                                     gallery
Members                                  mlist
Chat                                        chat
Logout                                     logout
Custom Tab                             cusY - Replace the Y with the number of the tab in order of creation


5) Save