jorrit91 on "jQuery tabs not working on mobile"

ساخت وبلاگ

Hi Andrew, here I am again..:(
So, I've recorded my screen to show you what happens when I toggle Device Mode in Chrome. You can check the stuff that's happening (or not-happening) here. So, your code doesn't seem to do anything when I'm in "Touch Device Mode", I still can't open the tabs. In the video you can see me trying it two times. One time without refreshing the page after toggling Device Mode, after that I refresh the page and enter the code again.

So, did you get to this step:
https://wordpress.org/support/topic/jquery-tabs-not-working-on-mobile?replies=29#post-8241635

Yes, I've tried to enter the code in

jQuery(document).ready(function() { jQuery( "#listing-tabs" ).tabs(); jQuery( "#inquiry-form" ).validate(); jQuery( ".iframe-wrap" ).fitVids();
});

So this was the result:

jQuery(document).ready(function() { jQuery( "#listing-tabs" ).tabs(); var $ = jQuery, tabLinks = $('.ui-tabs-anchor'); tabLinks.on('click', function(event) { var destination = $(this).attr('href'); // Remove the current scroll effect $('html, body').stop(); // Write it yourself. $('html, body').animate({ scrollTop: $(destination).offset().top }, 1000); }); jQuery( "#inquiry-form" ).validate(); jQuery( ".iframe-wrap" ).fitVids();
});

But it didn't change anything...

The file containing this code is "single-listing.js" and it's located in "wp-content/plugins/wp-listings-barbel/includes/js".

So, I'm still searching, I hope you've had a great weekend and somehow gained some energy to help me find the root of this problem. You've already been very helpful, thanks!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 62 تاريخ : سه شنبه 24 فروردين 1395 ساعت: 16:10