# Cannot add a dropdown link to an existing navbar

**URL:** <https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204>\
**Category:** General\
**Created:** [February 1, 2022, 2:15pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204 "2022-02-01T14:15:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![randyrie](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/randyrie/32/2103_2.png) [@randyrie](https://forum.pinegrow.com/u/randyrie)\
**Post date:** [February 1, 2022, 2:15pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/1 "2022-02-01T14:15:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)\
**Post date:** [February 1, 2022, 2:17pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/2 "2022-02-01T14:17:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![randyrie](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/randyrie/32/2103_2.png) [@randyrie](https://forum.pinegrow.com/u/randyrie)\
**Post date:** [February 1, 2022, 2:32pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/4 "2022-02-01T14:32:08Z")

</div>

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:

 ![Screen Shot 2022-02-01 at 9.31.23 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/ff069ec7aa249fc9415f3b1edfa42b4fe4455198.jpeg)

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 1, 2022, 2:49pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/5 "2022-02-01T14:49:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)\
**Post date:** [February 1, 2022, 3:03pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/6 "2022-02-01T15:03:47Z")

</div>

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:

```auto
<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>
            </ul>
          </li>

```

---

<div class="post-metadata">

**Author:** ![fakesamgregory](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/fakesamgregory/32/3903_2.png) [@fakesamgregory](https://forum.pinegrow.com/u/fakesamgregory)\
**Post date:** [February 1, 2022, 3:29pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/7 "2022-02-01T15:29:28Z")

</div>

@randyrie Any errors in your console?

---

<div class="post-metadata">

**Author:** ![randyrie](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/randyrie/32/2103_2.png) [@randyrie](https://forum.pinegrow.com/u/randyrie)\
**Post date:** [February 1, 2022, 3:36pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/8 "2022-02-01T15:36:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)\
**Post date:** [February 1, 2022, 3:46pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/9 "2022-02-01T15:46:52Z")

</div>

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:

```auto
 <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>
      </button>

      <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>
          <li class="nav-item">
            <a class="nav-link" href="#">Link</a>
          </li>
          <li class="nav-item">
            <a class="nav-link disabled" href="#">Disabled</a>
          </li>
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="http://example.com" 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>
            </div>
          </li>
        </ul>
        <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>
        </form>
      </div>
    </nav>

```

---

<div class="post-metadata">

**Author:** ![randyrie](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/randyrie/32/2103_2.png) [@randyrie](https://forum.pinegrow.com/u/randyrie)\
**Post date:** [February 1, 2022, 4:30pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/10 "2022-02-01T16:30:57Z")

</div>

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: [indyplacesc.com](https://indyplacesc.com/nav-test.html) that has the errant dropdown [Home Page] for you to look at.  
I really appreciated your help, BTW.

---

<div class="post-metadata">

**Author:** ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)\
**Post date:** [February 1, 2022, 8:28pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/11 "2022-02-01T20:28:02Z")

</div>

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:

```auto
  <a href="https://calendar.google.com/calendar/r?src=independenceplaceonline@gmail.com&amp;amp;ctz=America/New_York%22"></a> 

```

REMOVE THIS PART!

```auto
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
                            <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
                            <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>

```

---

<div class="post-metadata">

**Author:** ![randyrie](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/randyrie/32/2103_2.png) [@randyrie](https://forum.pinegrow.com/u/randyrie)\
**Post date:** [February 1, 2022, 9:21pm UTC](https://forum.pinegrow.com/t/cannot-add-a-dropdown-link-to-an-existing-navbar/6204/12 "2022-02-01T21:21:12Z")

</div>

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