How to remove automatic redirection to “happy-wheel-2-full.com” from WordPress site
December 5, 2015

Anchor tag not working in iPhone/iPad

Recently we have experienced an issue with Slider Revolution buttons, it was not working in iPad/ iPhone. However, it worked in all other devices like android, windows etc. To fix that, we used this line of codes-


$(function () {
$('a').on('click touchend', function() {
var link = $(this).attr('href');
window.open(link,'_self');

return false;
});
});

It worked after using these line of codes in custom JavaScript section of Slider Revolution.

If you want to set the above code only for iPhone / iPad your can try this:-


$(function () {

IS_IPAD = navigator.userAgent.match(/iPad/i) != null;
IS_IPHONE = (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null);

if (IS_IPAD || IS_IPHONE) {

$('a').on('click touchend', function() {
var link = $(this).attr('href');
window.open(link,'_self');

return false;
});
}
});