" />
      " />
        "/>

        TechQA.

        how to make a dynamic drop down menu with wordpress them development wp_nav_menu

        484 views Asked by fiveer joy At 2022-04-23T16:57:38+00:00 23 April 2022 at 16:57 2025-12-22T22:38:57+00:00

        HTML:

        <div class="containers">
            <div class="logo">
                <img src="<?php echo  get_theme_mod('webdeveloperjoy_logo') ?> " width="100px">
            </div>
            <ul id="nav">
                <li><a href="#">home</a></li>
                <li><a href="#">about</a></li>
                <li>
                    <a href="#">service</a>
                    <div class="sub">
                        <ul>
                            <li><a href="#">Web design</a></li>
                            <li><a href="#">Web development</a></li>
                            <li><a href="#">Seo</a></li>
                        </ul>
                    </div>
                </li>
                <li>
                    <a href="#">Gallery</a>
        
                    <div class="sub">
                        <ul>
                            <li><a href="#">one</a></li>
                            <li><a href="#">two</a></li>
                            <li><a href="#">three</a></li>
                            <li><a href="#">four</a></li>
                        </ul>
                    </div>
        
                </li>
        
                <li>
                    <a href="#">login</a>
        
                    <div class="sub">
                        <ul>
                            <li><a href="#">sign up</a></li>
                            <li><a href="#">five</a></li>
                            <li><a href="#">six</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
        </div>
        

        CSS:

        /*===================================
        css strat:
        ====================================*/
        
        *{  
            padding: 0; 
            margin: 0;  
            box-sizing: 
            border-box;  
            font-family: 'Ms Madi', cursive;
        }
        
        .containers {  
            width: 100%;  
            height: 50px;  
            background: red;  
            display: flex;  
            align-items: center  
            justify-content: space-around;  
            position: relative;
        }
        
        #nav {  
            display: flex; 
            list-style: none;  
            align-items: center; 
            margin-top: 15px;
        }
        
        #nav li a {  
            padding: 0 10px; 
            text-decoration: none; 
            text-transform: uppercase; 
            color: white 
            font-family: 'Oswald', sans-serif;
        }
        
        #nav li a:hover {
            background: blue;
            color: white;
            padding: 10px;
        }
        
        .sub {
            display: none;
        }
        
        ul li:hover .sub {
            display: block;
        }
        
        .sub ul {
            position: absolute;
            display: block;
            margin-top: 5px;
            background: red;
            padding: 10px;
        }
        
        .sub ul li {
            list-style: none;
            padding: 10px;
        }
        
        .sub ul li a {
            color: white;
        }
        
        wordpress drop-down-menu wp-nav-menu-item
        Original Q&A
        1

        There are 1 answers

        0
        Md. Shahinur Islam Md. Shahinur Islam On 2022-04-24T09:01:16+00:00 24 April 2022 at 09:01

        Use WP Bootstrap Navwalker dynamic drop-down menu for WordPress.

        https://github.com/wp-bootstrap/wp-bootstrap-navwalker

        Related Questions in WORDPRESS

        • How to add the dynamic new rows from my registration form in my database?
        • Wordpress Site - pages have low text-HTML ratio
        • wordpress delete unwanted location
        • How to create a facet for WP gridbuilder that displays both parent and child custom fields?
        • How to change woocomerce or full wordpress currency with value from USD to AUD
        • error 500 on IIS FastCGI but no clue despite multiple error loggings activated
        • Caching private wordpress rest endpoints
        • How do i get my close button to work on a popup?
        • SQL query to get student enrolled in this month in a course - Moodle
        • What wordpress plugin prevent sharing of contact information amongst users?
        • Password protected or private URL one-time viewable video access
        • Download button not working in wordpress website. How can solve it?
        • WP toolkit problem after deleting wordpress site manually
        • TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
        • New Order Email Details Missing // Woocommerce / Woocommerce Bookings

        Related Questions in DROP-DOWN-MENU

        • Dropdown menu in a fixed navbar
        • What is the optimal way to detect press outside of a component like a dropdown menu?
        • n is not a constructor error for bs4.5.2 dropdown and jquery 3.5.1
        • Convert HTML Menu Code In Blogger to SubMenu
        • Is there any library available same like notion select in React JS?
        • Reusing Dropdown Menu in Kotlin Jetpack Compose
        • how to create 2 Level Dependent Dropdowns like country and capital using laravel livewire?
        • MudBlazor Autocomplete\Select control popup location
        • How to make dialog and the top menu remain the same orientation across different languages?
        • Flutter dropdownMenue with conditions
        • Why does changing the value of streamlit selectbox cause the entire page to refresh each time?
        • Shadcn ui select component state not updating after change
        • How to update asp:DropDownList items between user opening the DDL and the list rendering on the page?
        • Drop Down list handling
        • Mobile dropdown menu not displaying while using: input:checked ~ ul

        Related Questions in WP-NAV-MENU-ITEM

        • Problem in making the site menu dynamic in WordPress with wp_nav_menu function
        • WordPress Menu - SVG <path> Animation on Menu Items
        • how can i split Nav menu item with border: 3px in Divi theme?
        • WooCommerce account Endpoints changing wp_nav_menu label for different page?
        • Adding a div affter Ul menu in wordpress meue using navwalker
        • How to create in Walker nav menu custom elements
        • classList is only affect the first li in the ul despect the fact that all the elements where selected
        • Add class to wp_nav_menu
        • Is there a css only way to blur the background of the page when you hover a nav link that has a dropdown menu?
        • How do I change the Sub-menu to Ordered List in Wordpress
        • How to change a ul element to a div on the wp_nav_menu|
        • how to make a dynamic drop down menu with wordpress them development wp_nav_menu
        • Wordpress , local anchor instead of full link with wp_nav_menu
        • how to add dot in the active nav menu
        • Wordpress Display ACF only in first depth nav

        Popular Questions

        • How do I undo the most recent local commits in Git?
        • How can I remove a specific item from an array in JavaScript?
        • How do I delete a Git branch locally and remotely?
        • Find all files containing a specific text (string) on Linux?
        • How do I revert a Git repository to a previous commit?
        • How do I create an HTML button that acts like a link?
        • How do I check out a remote Git branch?
        • How do I force "git pull" to overwrite local files?
        • How do I list all files of a directory?
        • How to check whether a string contains a substring in JavaScript?
        • How do I redirect to another webpage?
        • How can I iterate over rows in a Pandas DataFrame?
        • How do I convert a String to an int in Java?
        • Does Python have a string 'contains' substring method?
        • How do I check if a string contains a specific word?

        Popular Tags

        javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json

        Trending Questions

        • UIImageView Frame Doesn't Reflect Constraints
        • Is it possible to use adb commands to click on a view by finding its ID?
        • How to create a new web character symbol recognizable by html/javascript?
        • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
        • Heap Gives Page Fault
        • Connect ffmpeg to Visual Studio 2008
        • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
        • How to avoid default initialization of objects in std::vector?
        • second argument of the command line arguments in a format other than char** argv or char* argv[]
        • How to improve efficiency of algorithm which generates next lexicographic permutation?
        • Navigating to the another actvity app getting crash in android
        • How to read the particular message format in android and store in sqlite database?
        • Resetting inventory status after order is cancelled
        • Efficiently compute powers of X in SSE/AVX
        • Insert into an external database using ajax and php : POST 500 (Internal Server Error)
        • Privacy
        • Terms
        • Cookies
        • Homegardensmart
        • Math
        • Aftereffectstemplates