Hi Guys,
I have created mobile friendly page with icons that lead to URL, but on mobile devices it requeres double tap on icon to go to url. How can I make it one tap to go to url?
Icons i’m talking about is Call, Directions, Online Order, Facebook
Hi anogma!
on my htc one device it’s working fine with one click. Which device are you using? Please check on another device as well.
Regards,
Andy
Any Iphone devices makes it double tap
Hey!
Try to add this to the functions.php:
add_action('wp_footer', 'ava_option_style');
function ava_option_style(){
?>
<script>
(function($){
$('#top .av_font_icon a').each( function(){
var iconlink = $(this).attr('href');
$(this).removeAttr('href');
$(this).css('cursor', 'pointer');
$(this).click(function() {
window.location = iconlink;
});
});
})(jQuery);
</script>
<?php
}
Cheers!
Ismael
Where should I add this in functions.php ?