We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16932
    • 31 Posts
    Dear all,

    Who can translate this bootstrap menu into a wayfinder (Evolution) sollution with chunks?
    I can get it to work but as soon as I ad a sub page the template doesn't work. Examples below.

    Original menu:

    <!-- Static navbar -->
    <nav class="navbar navbar-default">
    <div class="container-fluid">
    <div class="navbar-header">
    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
    <!-- <a class="navbar-brand" href="#">Project name</a>-->
    </div>
    <div id="navbar" class="navbar-collapse collapse">
    <ul class="nav navbar-nav">
    <li><a href="index.html">Home</a></li>
    <li><a href="diensten.html">Diensten</a></li>
    <li><a href="opdrachtgevers.html">Opdrachtgevers</a></li>
    <li><a href="#">Prijs</a></li>
    <li><a href="#">Contact</a></li>
    <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown <span class="caret"></span></a>
    <ul class="dropdown-menu" role="menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li><a href="#">Link</a></li>
    </ul>
    </li>
    </ul>
    </div>
    <!--/.nav-collapse -->
    </div>
    <!--/.container-fluid -->
    </nav>
    </div>

    Working example: http://www.brandkracht.nl/home1.html
    Not working with sub item: http://www.brandkracht.nl/diensten/sub-1.html

    Your help is very much appriciated!!

    Kind regards,

    Lennard

      • 22840
      • 1,572 Posts
      Try adding the below before the </head> tag in your header and then clear your cache

      <base href="[{+site_url}]" />
        • 16932
        • 31 Posts
        Thanks, i will give it a go!
          • 16932
          • 31 Posts
          It was the "Friendly url's" that was cousing the problem. I changed the settings and now it is working.
          Thank you for taking the time to help me!

          Kind regards,

          Lennard
            • 22840
            • 1,572 Posts
            It was actually the missing base href that was causing it, because you were linking relatively to your CSS file when you go into a sub category it could no longer find the css, adding that to the header would have fixed it but also changing the friendly url path would work.

            Glad it's working now anyway