Making a menu responsive
-
Hi
I am trying to make my menu responsive and using the code from this site https://www.hongkiat.com/blog/responsive-web-nav/
My problem is getting the @media only screen and (max-width : 480px) to work.
The code asks for:
<nav class="clearfix"> <ul class="clearfix"> <li><a href="#">Home</a></li> <li><a href="#">How-to</a></li> <li><a href="#">Icons</a></li> <li><a href="#">Design</a></li> <li><a href="#">Web 2.0</a></li> <li><a href="#">Tools</a></li> </ul> <a href="#" id="pull">Menu</a> </nav>
My question is where do I put the line of code Menu Does is go in the header or in the function file. I have tried putting it:
<div id="nav-bar-case"> <nav class="group"> <?wp_nav_menu(array('menu'=>'Header Menu'));?> <nav><!--end of nav bar--> <a href="#" id="pull">Menu</a> </div><!--end of nav bar case-->
But no luck – anyone know what do do?
- The topic ‘Making a menu responsive’ is closed to new replies.