Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • #881577

    Hi,

    There seem to be some issues when viewing on iphone and some inconsistencies on different mobile device.

    1) there is a little box showing between two image links – see screenshot attached. Can you let me know how I can get rid of this?

    2) On iphone, when clicking the image links it takes a couple of times to open the link.

    3) Images seem to be in difference size on iphone whereas when I view on the android phone, they are all in the same size.

    How can I get these fixed?

    Many thanks

    #881704

    Hey 2eminds,

    Best regards,
    Victoria

    #882004

    Hi Victoria

    Thank you – I’ve removed the extra element.

    Would you be able to help me with my 2nd point:

    2) On iphone, when clicking the image links it takes a couple of times to open the link.

    Many thanks

    Risa

    #882117

    Hi,

    Thank you for the update.

    Please add the following code in the functions.php file and then remove the browser cache or hard refresh before checking the page again on your device.

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    			$('.avia_image').on('click touchstart', function(e) {
    					var link = $(this).attr('href');
    					window.location.href = link;
    			});
    	}
    
    	a();
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #882282

    Thank you Ismael – I still have problem with link images not working properly (still need to click more than once to open the link)

    #882521

    Hi,

    Please add the script above then make sure that you’re not looking on a cached version of the page. Remove browser cache or test it on another device.

    Best regards,
    Ismael

    #882545
    This reply has been marked as private.
    #882907
    This reply has been marked as private.
    #883411

    Hi,

    The links or images redirected to the corresponding pages on single tap. I’m testing it on an iPad 2 device. Please try it again.

    Best regards,
    Ismael

    #883491

    Thank you so much Ismael.

    We checked on two different iphone devices and we were able to open the links on single tap.

    Thank you for your help on this.

    Risa

    #883592

    Hi Ismael

    Since you fixed this issue, when I tap the images with NO LINK (by accident) redirects to unidentified page. Can you please have a look?

    Many thanks

    Risa

    #884493

    Hi,

    Which of the images have no link? The script can be configured so that it only affects images with links.

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    ?>
    <script type="text/javascript">
    (function($) {
    	$('.avia_image').on('touchend', function(e) {
    			var touchmoved, link;
    			link = $(this).attr('href');
          if(link == '' || link == null) return;
    			if(touchmoved != true) {
    		      window.location.href = link;
    		  }
    	}).on('touchmove', function(e){
    	    touchmoved = true;
    	}).on('touchstart', function(){
    	    touchmoved = false;
    	});
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #885111
    This reply has been marked as private.
    #885413

    Hi,

    Please try to replace “touchstart” with “touchend”. Again, please make sure to refresh the scripts or remove the browser cache.

    Best regards,
    Ismael

    #885760

    Thank you Ismael

    I replaced “touchstart” with “touchend” and cleared cache but still sensitive. Can you please have a look again?

    Many thanks

    #885936

    Hi,

    Hmmm.. Please remove the “click” event.

    $('.avia_image').on('touchend', function(e) {
    

    Best regards,
    Ismael

    #886108

    Hi Ismael

    Thank you for this – I’ve removed ‘click’ and cleared cache – but still sensitive.

    Can you please advise?

    Many thanks

    #887537
    This reply has been marked as private.
    #887670

    Hi!

    I’m sorry for the late response. I modified the script a bit. Please try it again.

    // https://kriesi.at/support/topic/issues-on-mobile-device-view/#post-884493

    Cheers!
    Ismael

    #890618
    This reply has been marked as private.
    #891475

    Hi,

    I”m sorry if this is taking a bit too long. Unfortunately, we don’t do phone support. Please provide the FTP details to the site so that we can test the modification or script.

    Best regards,
    Ismael

    #891546
    This reply has been marked as private.
    #892439
    This reply has been marked as private.
    #892686

    Hi,

    Happy new year!

    I was able to connect to the server but it’s empty. Is this the correct directory? Also, the WP login details is not working anymore.

    Best regards,
    Ismael

    #892932
    This reply has been marked as private.
    #893127

    Hi,

    Thank you for the info.

    We modified the code a bit and tested it on a mobile device. It is working properly now. Please make sure that you’re not looking on a cached version of the page.

    Best regards,
    Ismael

    #894117
    This reply has been marked as private.
    #894458

    Hi Risa,

    Glad Ismael helped to get it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

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