I have a question, which I want to solve for a really long time now. I'm creating my own boostrap sub-theme.
I 3 links in my drupal menu:
I want this menu to be available on every page, and it should be possible to access every link on every page. My code in page.tpl.php:
<div class="<?php print $navbar_classes ?>"> <div class="container"> <?php if (!empty($primary_nav) || !empty($secondary_nav) || !empty($page['navigation'])): ?> <div class="navbar-collapse collapse"> <nav role="navigation"> <?php print render($primary_nav) ?> <?php print render($secondary_nav) ?> <?php print render($page['navigation']) ?> </nav> </div> <?php endif ?> </div> </div>
However I can only go to the sub (e.g. /info/sub) when I'm on the parent (e.g. info). I have tried to use superfirsh but then I loose all advantages of boostrap.
Home page, there isn't a caret:
Info page, there is a caret:
Note that the HTML code for the dropdown menu isn't available on the home page.
I know this is possible, but how? Thanks!