Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #918622

    Please check on tablet http://www.greenjolien.nl/wp
    The link on the fallbackimage is not working.
    On Phone and desktop it does work. Not on tablet (iPad).
    Does anyone can help me with this?

    #919505

    Hey famewebdesign,

    Thank you for using Enfold.

    Please edit the js > shortcodes.js file, look for this code around line 4527:

    var image = $('<img src="'+fallback+'" alt="" title="" />');
    

    Replace it with:

    var image = $('<a href="'+fallback_link+'"><img src="'+fallback+'" alt="" title="" /></a>');
    

    Best regards,
    Ismael

    #919607

    I have looked into this problem and found that this is better: gives a proper lightbox on iPads instead of linking to youtube page.

    
    	var image = $('<a href="'+fallback_link+'" rel="prettyPhoto" title="" alt="YouTube"><img src="'+fallback+'" alt="" title="" /></a>');
    						current.find('.avia-slide-wrap').append(image);
    						current.parents('#main').avia_activate_lightbox();
    
    • This reply was modified 6 years, 8 months ago by Pixelbits.
    #919619

    Thanks Pixelbits! Just what I needed!
    Issue solved!

    #919926

    Hi,

    Thank you @Pixelbits for the suggestion.

    @famewebdesign
    happy you got it short out.

    Best regards,
    Basilis

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Link in fallback image is not working on tablet’ is closed to new replies.