vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Delete links under navbar (sub-navbar?) (https://vborg.vbsupport.ru/showthread.php?t=267981)

StudentCreche 08-05-2011 12:17 AM

Delete links under navbar (sub-navbar?)
 
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 01: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 05:06 AM

Put this in your additional.css
Code:

.navtabs ul.floatcontainer {
display: none;
}

Just checked at my place. Takes them completely out.

StudentCreche 08-05-2011 09:08 AM

The above suggestions just remove the links. I want the blank space to disappear as well...

RobbieZ 08-05-2011 01: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

Code:

<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
Code:


.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
Code:

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 11:09 PM

Quote:

Originally Posted by StudentCreche (Post 2229585)
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 11:51 AM

You guys are legends!


All times are GMT. The time now is 06:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01014 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete