Hackr.io is hiring Software Engineers at Gurgaon (India)

WordPress Discussion Forums

There's no such thing as a stupid question. Ask. Discuss. Learn.

HOW CAN I MAKE DYNAMIC MENU THROUGH IN CONVERTING HTML TO WORDPRESS LAYOUT ?

I m just creaating html to WordPress and i want to setup my menus dynmatic but menu are coming but there css is not able to come so please tell me how can i do that. i m using just like this

This is my HTML Navbar :

				<ul class="navbar-nav mx-auto text-center">
<li class="nav-item active">
<a class="nav-link" href="index.html">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link scroll" href="#about">About</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Pages
</a>
<div class="dropdown-menu text-lg-left text-center" aria-labelledby="navbarDropdown">
<a class="dropdown-item scroll" href="#services">Services</a>
<a class="dropdown-item scroll" href="#specials">Specials</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item scroll" href="#gallery">Gallery</a>
</div>
</li>

<li class="nav-item">
<a class="nav-link scroll" href="#contact">Contact Us</a>
</li>
</ul>



-----

In WordPress I am Using Like this

				Please Tell me which attribute i need to add here 
Nahar Singh 10 months ago
  • Harsh S.

    Dynamic menus will make your site slower by making repeated database queries. Instead, create category-wise static pages and display your contents there. You can also copy-paste the page code into a WordPress widget and makes it show on the sidebar. Also, you can set it to display only on the specific pages/posts or categories.


  • Nahar Singh

    No i am not talking about that sql queries i need to convert html to wordpress where i need to make menu menus are coming but styles and classes are not coming so i need that php snippet used with html template css for navigation
    thank you


  • Whitelisted Links
;