Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Tabs > Hide a Tab
Mottie (SuperAdmin) 4/1/2011 12:12 PM EST : Hide a Tab
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hide a Tab

GuildPortal admin site link to original post

If you want to hide a tab, first find the tabID for that tab in the URL... so lets say your tab ID is 1111111. Replace the number in red below:

CSS method - this only works for the static image type nav bar
Add that number to the end of "#stabsCell" and set it to display none to get the following:
#stabsCell1111111 { display: none; }
Add this bit of CSS to your custom css (Control Panel > Custom HTML & Script > Custom CSS > CSS Additions to Standard)
Script Method
If you are using side tabs or want to use code instead, then use this script to hide the tab. Replace the number in red with the tabID.

Add this code to your custom script (Control Panel > Custom HTML & Script > Custom Javascript/JQuery > Document Ready Event).
// This will remove a side navigation link.
$('a.ActiveDiv[href*=1111111]').parent().hide();

// This will remove a tab in a static image type nav bar
$('a[href*=1111111]').closest('td[id^=stabsCell]').hide();

// This will remove a tab in a Dynamic image type nav bar
$('#straightBarWrapperInnerTable a[href*=1111111]').parent().hide();
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Dethmaul (Member) 10/19/2011 12:23 PM EST : RE: Hide a Tab
Dethmaul
Posts: 987

0
Like

0
Dislike

Not sure if something has changed, but none of the script method codes snippets worked for me.

I am getting ready to change our site as we are going to be a guild across WoW and SWTOR, and I want to start consolidating information. I want the tabs, but I want to link to them from a tab for each game.
TopBottom

Mottie (SuperAdmin) 10/20/2011 11:45 AM EST : RE: Hide a Tab
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hi Dethmaul!

So, I'm guessing you have two sites set up? Maybe you could use the Add Tab code to add a tab that links to your other guild site forums, then on the other side, add a tab to link back. It would be much easier than trying to embed the forums on a page.
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%