News:

Create A Forum Installed

Author Topic: [Code] Hide Tabs V3  (Read 679 times)

0 Members and 3 Guests are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
[Code] Hide Tabs V3
« 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/

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)
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


Offline CyanProductions

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
    • View Profile

Badges: (View All)
Level 3 10 Posts Karma Good
Re: [Code] Hide Tabs V3
« Reply #1 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.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1595 Views
Last post August 28, 2014, 04:47:47 pm
by outlaw16151
8 Replies
3195 Views
Last post January 03, 2015, 11:48:22 pm
by CyanProductions
0 Replies
284 Views
Last post November 29, 2013, 02:44:36 am
by Sara50840
0 Replies
534 Views
Last post January 04, 2015, 12:14:12 am
by CyanProductions
9 Replies
236 Views
Last post November 15, 2021, 01:29:40 am
by CreateAForum