vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Hiding Sub-Navigation Bar with No Dropdown Menus and Links (https://vborg.vbsupport.ru/showthread.php?t=297502)

Amaury 04-23-2013 02:51 AM

Hiding Sub-Navigation Bar with No Dropdown Menus and Links
 
Is it possible to hide the sub-navigation bar when there are no dropdown menus or links? For example, if you visit our Home page, you'll see there are no links underneath.

Amaury 04-25-2013 01:22 PM

Bump. :)

Amaury 05-12-2013 05:56 PM

Bump.

nerbert 05-12-2013 06:05 PM

In Navigation Manager click on the tab name and then uncheck all the check boxes under "Active"

Amaury 05-12-2013 06:35 PM

Quote:

Originally Posted by nerbert (Post 2421591)
In Navigation Manager click on the tab name and then uncheck all the check boxes under "Active"

There are no links under "Home."

nerbert 05-12-2013 06:53 PM

If you don't want any links under the other tabs (Activity Stream, Forum, etc) de-activate all of them in the Navigation Manager. "Home" is already the way you want it, right?

Amaury 05-12-2013 07:05 PM

Quote:

Originally Posted by nerbert (Post 2421601)
If you don't want any links under the other tabs (Activity Stream, Forum, etc) de-activate all of them in the Navigation Manager. "Home" is already the way you want it, right?

Read the OP again.

nerbert 05-12-2013 07:50 PM

OK, I see what you mean. The only way I can think of is to use JavaScript to hide it when you are on the Home page or Contact Us

Try pasting this at the bottom of the navbar template

Code:

<script>
if(fetch_object("tab_ntk2_394").className == "selected" || fetch_object("tab_mte4_890").className == "selected") {
        fetch_object("globalsearch").style.display = "none";
        fetch_object("navbar").style.height = "26px";
}
</script>



All times are GMT. The time now is 07:40 AM.

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.01588 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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