Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #414736

    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

    #415547

    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

    #415549

    Any Iphone devices makes it double tap

    #415906

    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

    #426772

    Where should I add this in functions.php ?

    #426960

    Hey!

    Please try to add it to the very bottom of functions.php

    Cheers!
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.