Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: aIURbliS on January 04, 2015, 01:02:00 am

Title: [Code] Hide Tabs V3
Post by: aIURbliS on January 04, 2015, 01:02:00 am
Description: Hides any tabs you want.

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/)

Footers:
Code: [Select]
<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].toLowerCase()&&$(this).remove()});</script>
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 (hover to show)
Title: Re: [Code] Hide Tabs V3
Post by: CyanProductions on January 04, 2015, 01:07:59 am
Very complex but efficient.
I was trying to figure out a way to do that, but I knew I wouldn't be the guy.