Reputation: 31
I had some problems on the blog in mobile display Can be seen in the picture.
Problem:
Site : http://cekabel.blogspot.com
Source: http://pastebin.com/AYJjMsL0
Upvotes: 3
Views: 225
Reputation:
Add this CSS code before </head>
<style type="text/css">
a.menu-slide {
display: block !important;
}
.show {
display: block !important;
}
</style>
Add this javascript code before </body>
<script type="text/javascript">
//<![CDATA[
$('#pull').click(function() {
$('.top-menunavi ul').toggleClass('show');
});
$('.menu-slide').click(function() {
$('.arlina-mainmenu').toggleClass('show');
});
//]]>
</script>
Upvotes: 0
Reputation: 186
call this function on click event :
jQuery('.top-menunavi > ul').toggleClass('active');
Upvotes: 0
Reputation: 739
Add to your code:
jQuery('#pull').click(function(){
jQuery('.top-menunavi > ul').toggleClass('active');
});
and to CSS:
.active {
display: block !important;
}
Upvotes: 0
Reputation: 687
Follow this link and re-arrange the header structure.
For more follow this link:
Toggle menu onclick, close by clicking menu link - but only in mobile view
Hope this will help you!!
Upvotes: 2