PDA

View Full Version : Delete links under navbar (sub-navbar?)


StudentCreche
08-04-2011, 11:17 PM
Basically I want to remove all the links under the navbar on http://www.studentcreche.co.uk/forum.php. I'm basically referring to the sub-navbar? I want to completely diminish it from the skin. How's this possible?

Lynne
08-05-2011, 12:39 AM
You would need to edit the navbar template in order to remove it. Look for any class="selected" and then a couple lines under that should be the <ul> for the sub-menu and you would remove that whole list.

setishock
08-05-2011, 04:06 AM
Put this in your additional.css

.navtabs ul.floatcontainer {
display: none;
}

Just checked at my place. Takes them completely out.

StudentCreche
08-05-2011, 08:08 AM
The above suggestions just remove the links. I want the blank space to disappear as well...

RobbieZ
08-05-2011, 12:09 PM
You can either follow Lynne's way or setishock's way but you will still have your advanced search link!

By removing this

<ul class="navbar_advanced_search">
<li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
</ul>

Will now leave you with your blank space which is removed or should I say reduced by searching for this in vbulletin-chrome.css


.navbar {
position:relative;
height:{vb:math {vb:stylevar navbar_tab_border.borderWidth} + {vb:stylevar navbar_tab_size.height} * 2}px;
background:{vb:stylevar navbar_background};
margin:{vb:stylevar navbar_margin};
color:{vb:stylevar navbar_color};
font:{vb:stylevar navbar_font};
-moz-border-radius-bottom{vb:stylevar left}:{vb:stylevar border_radius};
-moz-border-radius-bottom{vb:stylevar right}:{vb:stylevar border_radius};
-webkit-border-bottom-{vb:stylevar left}-radius:{vb:stylevar border_radius};
-webkit-border-bottom-{vb:stylevar right}-radius:{vb:stylevar border_radius};
}

Change the height to read height: 30px;

The math works out your border width and navtab height so your navbar links sits nicely nested in the space provided by this!

The default style math is worked out at 53px, I made it 30px so it still makes your container look nice, of course the bigger your navtabs then you will have to tweak this height accordingly.

Edit: Nearly forgot this WILL affect blogs/home and any other navbar links you have on other pages!

setishock
08-05-2011, 10:09 PM
The above suggestions just remove the links. I want the blank space to disappear as well...

Have you checked the body padding? If you removed the text as Lynne and I suggested and you have not reduced the body padding top to 0 then you have a 10px dead zone at the top of the body background.
Body_padding stylevar.

StudentCreche
08-06-2011, 10:51 AM
You guys are legends!