Cannot add a dropdown link to an existing navbar

re: PG v5.99.1

I’m trying to add a dropdown link to a navbar on an existing website but the dropdown’s links do not show (if I create a new page on this site and add a navbar, its included dropdown links do display). What could be causing this?

I’m at a loss to figure out what’s causing this issue.

URL? For Testing Please! …
Did you copy an existing page with a working dropdown? JavaScript link missing add the bottom like bootstrap.js ?

I haven’t posted the site to a public site yet - I’m working on my localhost.
These scripts are on the existing page that won’t work:

Hi @randyrie,
Can you also post the code for the navbar that isn’t working?

The links look OK! Just be sure that bootstrap.min.js and jQuery is there.
This is a Bootstrap 4 dropdown on one of my websites just copy paste it to see if it works:

<li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Wij <span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="over-ons">Over ons</a></li>
              <li><a href="privacy">Privacy</a></li>
              <li><a href="conditions">Conditions</a></li>
              <li><a href="voorwaarden">Voorwaarden</a></li>

@randyrie Any errors in your console?

No errors… just a color change when I click on the dropdown but no dropdown links display :sleepy:

Did you try to copy paste my drop down example to rule out that you have a error in the HTML?

Here a whole menu:

 <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
      <a class="navbar-brand" href="#">Navbar</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>

      <div class="collapse navbar-collapse" id="navbarsExampleDefault">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item active">
            <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
          <li class="nav-item">
            <a class="nav-link" href="#">Link</a>
          <li class="nav-item">
            <a class="nav-link disabled" href="#">Disabled</a>
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
            <div class="dropdown-menu" aria-labelledby="dropdown01">
              <a class="dropdown-item" href="#">Action</a>
              <a class="dropdown-item" href="#">Another action</a>
              <a class="dropdown-item" href="#">Something else here</a>
        <form class="form-inline my-2 my-lg-0">
          <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
          <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>

No luck using your code @AllMediaLab… and I do have the js and jQuery scripts on the page. I’ve posted a test page at: that has the errant dropdown [Home Page] for you to look at.
I really appreciated your help, BTW.

Hi @randyrie Randy,

OK I found it!
remove this code from the middle of your page underneath the Google calendar and it should work again (double links!!!):

Underneath this part:

  <a href=";amp;ctz=America/New_York%22"></a> 


  <script src=""></script>
                            <script src=""></script>
                            <script src=""></script>

YOU’RE ABSOLUTELY BRILLIANT @AllMediaLab :kissing_smiling_eyes:
Removing these scripts did the trick.
Thank You!

1 Like