" />
      " />
        "/>
        DEVHIDE
        • Home (current)
        • About
        • Contact
        • Cookie
        • Home (current)
        • About
        • Contact
        • Cookie
        • Disclaimer
        • Privacy
        • TOS
        Login Or Sign up

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

        480 Views Asked by fiveer joy At 23 April 2022 at 16:57 2025-11-26T16:41:07.330000

        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 best solutions below

        0
        Md. Shahinur Islam Md. Shahinur Islam On 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

        • Ajax jQuery firing multiple time display event for the same result
        • Retrieving *number* pages by page id
        • How to change the name of the file during unzip?
        • Pass variables to extended class
        • Dynamic wordpress background Based on Slider images
        • I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
        • Wordpress limit post that subscriber can create
        • CSS styles for all instances of a WordPress widget
        • Detect the function that redirects the page
        • Show success or error messages in Ajax response to Wordpress custom registration form
        • Internal 500 server error: .htaccess: RewriteCond: bad flag delimiters
        • Rerun loop after every third post? (Wordpress)
        • Error 404 not going after Wordpress Permalink change to custom structure
        • YouTube views not counting on Wordpress embed
        • Include only specific categories in WooCommerce product categories widget

        Related Questions in DROP-DOWN-MENU

        • How do i display data that are in between 2 values in a DDL?
        • Option Menu Not Working When I Add Javascript Function
        • Bootstrap dropdown not working with key board events
        • html/css Vertical Navigation Bar
        • Change all MenuItems ForeColor at once when click a button
        • Can't put Dropdownlist into a Datagrid
        • onClick event for dropdown list meteor javascript
        • MVC - Check drowdownlist value in real time
        • Why i can't load options onDropdownOpen?
        • Bootstrap 3.3.4 Pill Button Dropdowns unresponsive
        • How to disable add button or Disable dialog box propagation
        • Pass value of checkbox and dropdown into same array
        • How to get the ID from DropDownList?
        • Disable elements in dropdown based on value of (key,value) in map
        • Cannot have multiple items selected in a DropDownList in asp.net

        Related Questions in WP-NAV-MENU-ITEM

        • Converting html menu to wordpress menu
        • WooCommerce account Endpoints changing wp_nav_menu label for different page?
        • how to make a dynamic drop down menu with wordpress them development wp_nav_menu
        • How to add class and element to <a>-tag in sub-menu of "wp_nav_menu" in WordPress?
        • Quotation marks and apostrophes not displaying in PHP
        • how can i make div or id visible only to logged in wordpress author
        • Wordpress , local anchor instead of full link with wp_nav_menu
        • Get template part in wp nav menu
        • how to add class to certain li element in wp_nav_menu
        • How to add Class in <li> using wp_nav_menu() in Wordpress?
        • How can I dynamically add a new menu item to the beginning of a specific WordPress menu?
        • Bootstrap WordPress Menu: Add Custom CSS Class
        • Wordpress how to remove auto generated &nbsp; in the navigation menu
        • wrapping parent and child pages in separate ul in wp nav menu
        • classList is only affect the first li in the ul despect the fact that all the elements where selected

        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)

        Popular # Hahtags

        javascript python java c# php android html jquery c++ css ios sql mysql r reactjs

        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?
        .

        Copyright © 2021 Jogjafile Inc.

        • Disclaimer
        • Privacy
        • TOS
        • Homegardensmart
        • Math
        • Aftereffectstemplates