Forum Replies Created
-
AuthorPosts
-
Cenk Arslan
ParticipantAwesome! It works now. Thank you very much!
Cenk Arslan
ParticipantThank you! Which part needs to be in the function.php?
This one?
———————————
add_action( ‘wp_footer’, ‘asp_prevent_double_tap’ );
function asp_prevent_double_tap() {
?>
<script>
jQuery(function($){
$(‘.results’).on(‘click touchend’, ‘.item’, function(e){
e.preventDefault();
e.stopImmediatePropagation();
e.stopPropagation();
window.location.href = $(‘a.asp_res_url’, this).attr(‘href’);
});
});
</script>
<?phpCenk Arslan
ParticipantHi Ernest,
Thank you for the quick response. I have turned the keyboard behaviour off. Same results.
I have tested it on the touchscreen Windows computer, maybe that’s reason why it didn’t work.
How can I solve the mobile issue? An average user will not know about the double clicking behaviour when they are using a mobile device.
Thank you,
Cenk
Cenk Arslan
ParticipantHi Ernest,
I have whitelisted the ip address. It’s the search suggestion link table..causes the user to double click a link instead of 1 click. Please see attached file.
-
AuthorPosts