What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Adding dropdown list to side navbar (bootstrap)

LH1980

New member
Joined
Jun 3, 2023
Messages
1
Reaction score
0
HTML Coins
0
Hi,

I am trying to add a drop down toggle within a side navbar. I can either get all the links displayed (rather than in a dropdown to open and close) or just the toggle button but no event opening or closing the sub menu. I have tried many iterations of markup, and I am hoping it is something simple!

The header: <div id="content"> <!-- header --> <header> <!-- header inner --> <div class="header"> <div class="container-fluid"> <div class="row"> <div class="col-xl-3 col-lg-3 col-md-3 col-sm-3 col logo_section"> <div class="full"> <div class="center-desk"> <div class="logo"> <a href="https://www.site.com/index.php"><img src="https://www.seecuring.com/images/300.png" alt="#" /></a> </div> </div> </div> </div> <div class="col-xl-9 col-lg-9 col-md-9 col-sm-9"> <ul class="btn"> <!-- <li class="down_btn"><a href="#">Download</a></li>--> <!--<li><a href="#">Sign Up</a></li>--> <li><a href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li> <span class="visually-hidden">Toggle Dropdown</span> <li><button type="button" id="sidebarCollapse"> <img src="https://www.site.com/images/menu_icon.png" alt="#" /> </button> </li> </ul> </div> </div> </div> </div> </header> The side menu I want to add a drop down to: <div class="sidebar"> <!-- Sidebar --> <nav id="sidebar"> <div id="dismiss"> <i class="fa fa-arrow-left"></i> </div> <ul class="list-unstyled components"> <li class="active"> <a href="https://www.seecuring.com">Home</a> </li> <li><a href="https://www.seecuring.com/about/">About </a> </li> THIS IS THE CODE BELOW, ALL THIS DOES IS LIST OUT THE LINKS WITHOUT A DROPDOWN: <div class="dropdown-container"> <a href="#">Link 1</a> <a href="#">Link 2</a> <a href="#">Link 3</a> </div> <li><a href="#contact">Contact </a> </li> </ul> </nav> </div>

Does anyone have a solution for something like this?

Thanks!
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back