WPTouch 3.1.1 Search and Menu Buttons Bug Fixes (Updated)

UPDATE 04-07-2014: This has been fixed in WPTouch 3.2.1. You will actually need to remove this fix if you upgrade to 3.2.1; otherwise, this fix will break what it was suppose to fix :-).


Using WPTouch 3.1.1? Are the search and menu buttons not working in the mobile view? Just add the following in the Branding | Theme Footer section under Theme Settings:

<script type="text/javascript">
jQuery('#search-toggle').off();
jQuery('#search-toggle').on('touchend', function (e) { jQuery('#search-dropper').toggleClass('toggled'); });
jQuery('#menu-toggle').off();
jQuery('#menu-toggle').on('touchend', function (e) { jQuery('#menu').webkitSlideToggle(); });
</script>
Tagged with: , ,
Posted in Development
Flattr this
Popular Posts
Recent Comments