pirro70
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Menu on tabletAnd if someone could try on an Android tablet
Forum: Themes and Templates
In reply to: [Customizr] Menu on tabletmaybe I found a solution
I worked on a jquery snippet found on webadd_action('wp_head', 'mobile_menu'); function mobile_menu() { if(wp_is_mobile()) :?> <script> function isTouchDevice(){ return typeof window.ontouchstart !== 'undefined'; } jQuery(document).ready(function($){ jQuery("li.menu-item-has-children > a").removeAttr("data-target").removeAttr("data-toggle").removeClass("clicked"); if(isTouchDevice()) { jQuery("li.menu-item-has-children > a").click(function(event) { if(jQuery( document ).width() > 979) { jQuery("li.menu-item-has-children > a").not(this).removeClass("clicked"); jQuery("li.menu-item-has-children > a").parents().removeClass("open"); jQuery(this).toggleClass("clicked"); if (jQuery(this).hasClass("clicked")) { event.preventDefault(); jQuery(this).parents().addClass("open"); } } }); jQuery("#main-wrapper").click(function(event) { jQuery("li.menu-item-has-children > a").parents().removeClass("open"); jQuery("li.menu-item-has-children > a").removeClass("clicked"); }); } }); </script> <?php endif; }I tried on IPad and it work fine.
could someone more experienced than me see if there’s something wrong or if the code can be written better?Forum: Themes and Templates
In reply to: [Customizr] Menu on tabletok I’ll wait for it
thanksForum: Themes and Templates
In reply to: [Customizr] Make completely separate mobile version?you might try wp_is_mobile function in addition width is_page() hook
Forum: Themes and Templates
In reply to: [Customizr] facebook problemsI think I have solved by unchecked the option “Enable/disable blocks reordering on small devices” in Various settings for responsive display
Forum: Themes and Templates
In reply to: [Customizr] Menus not working correctly on tabletI think like lazyskins, I have the same problem.
This problem must be solved.
Any solutions????