Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22093

Emdad on "[Theme: Expound] Responsive vs Mobile : pulldownmenu not working"

$
0
0

Can i have your javascript code for this responsive menu ?

Or try this :

1. load your jquery before this code

2. add this below jquery code

jQuery(document).ready(function () {

    // Responsive menu
    $("#site-navigation").addClass("js").before('<div id="menu">☰<span id="text">Menu</span></div>');
	$("#menu").click(function(){
		$("#site-navigation").slideToggle();
	});
	$(window).resize(function(){
		if(window.innerWidth > 768) {
			$("#site-navigation").removeAttr("style");
		}
	});

});

3. I hope you know the CSS part to style.


Viewing all articles
Browse latest Browse all 22093

Trending Articles