As a quick fix, I've just added a class to the button links with dropdowns;
Code:
<li><a href="/features.php" rel="features" class="mobclick">Features V</a></li>
And then employed this bit of jQuery to apply the click toggle for mobile devices (I don't believe this will work on version 1.9 or later though - I'm using 1.7.2);
Code:
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
jQuery(".mobclick").click(function () {
jQuery(".megawrapper").slideToggle("500");
});
}
".megawrapper" is the div that holds the Mega Menu dropdowns (generated in the ddmegamenu.js file and not referenced in the markup or supplied CSS).
BTW - For anyone looking in who wants to change the position of the dropdown (by default they always drop flush left to parent button) you can target the ".megawrapper" in CSS and position it absolutely - example;
Code:
.megawrapper { position:absolute !important; top:200px !important; left:0 !important; }
This makes the dropdown always appear in the same place.
Bookmarks