DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 15036--------------------------------------------------
[Code] Hide Tabs V3
By: xboi209 Date: January 3, 2015, 7:02 pm
---------------------------------------------------------
Description: Hides any tabs you want.
This code utilizes jQuery, please use the latest version found
in this thread:
HTML http://support.createaforum.com/5/jquery-v1-8-update/
HTML http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
[code]<script>var
hideTabs=["tabname1","tabname2"];for(i=0;i<hideTabs.length;i++)$
("#menu_nav").children("li").children("a").children("span").each
(function(){$(this).text().trim().toLowerCase()==hideTabs[i].toL
owerCase()&&$(this).remove()});</script>[/code]
Editing Instructions: Modify tabname1 and tabname2 inside the
hideTabs array to the name of the tab you want to hide. You may
hide more by adding a comma followed by a pair of quotation
marks with the tab name inside of them.
[spoiler]
Tab names are fool-proofed, you do not need to worry about case
sensitivity :)
[/spoiler]
#Post#: 15037--------------------------------------------------
Re: [Code] Hide Tabs V3
By: CyanProductions Date: January 3, 2015, 7:07 pm
---------------------------------------------------------
Very complex but efficient.
I was trying to figure out a way to do that, but I knew I
wouldn't be the guy.
*****************************************************