Reputation: 142
I have used twenty thirteen wordpress theme for a html page. It is working in normal windows. I have simply copy paste the code and replace necessary css and js files.
But in the mobile mode the mein manu doesnt toggle on-of...
I have searched some pages and and try to find a solution but i cannot achieve this.
I have added
<script>
$(document).ready(function(){
$("button").click(function(){
$("ul").toggle();
});
});
</script>
in the header and
add this in the as menu toggle button;
<h3 class="menu-toggle"><button id="hide">Menü</button></h3>
It has start to toggle but it has used main menu. But the orginal wp themes shows a customised sublevelled menu.
How can i do that.
Regards
Upvotes: 0
Views: 467
Reputation: 4523
JS
$(document).ready(function(){
$("#hide").click(function(){
$("ul#menu-menu-1").toggle(); // try to specify the class or ID of ul
});
});
Upvotes: 1