-
AuthorPosts
-
August 10, 2018 at 8:32 pm #996141
I have put my website into the private content tag so you can assist.
Problem 1: It appears that the fallback image on my website is showing on the desktop while the videos are loading in the video slider. I would only like to show the fall-back image on mobile or when the videos are unable to load. Otherwise, it looks sloppy.
Problem 2: I am attempting to disable lightbox on mobile. I am currently using it to show a gravity form for getting a quote. I have input the following code into the avia.js with no success. Any help would be appreciated:
//activates the prettyphoto lightbox var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; if(jQuery.fn.avia_activate_lightbox && !isMobile.any()){ $(container).avia_activate_lightbox(); }August 13, 2018 at 7:57 am #996553Hey brandonmattalo,
I am seeing the video on the front page on desktop. Is it a different page or different element I should be looking at?
I do not see images with lightbox anywhere either.
Can you please describe in more detail how to reproduce the issue?
Best regards,
VictoriaAugust 13, 2018 at 1:54 pm #996680Hi Victoria,
With regards to problem 1, the static image is the image I have set as the “fallback image”, which I have set only for mobile devices. It appears to show every once in a while on the desktop version while the videos are loading (possibly on a slightly slower connection). I was wondering if it is possible to not show the fall-back image while the videos are still loading and instead only show it on mobile.
With regards to problem 2, it is not an image lightbox. It is a modular window that appears when you click any of the buttons – “Get a Quote” or “Let’s work together”. It works great on desktop, but I would like the links to not open a lightbox window when on mobile (since it is too small).
Thanks!
Brandon
-
This reply was modified 7 years, 6 months ago by
brandonmattalo.
August 13, 2018 at 2:33 pm #996700Hi Brandon,
The lightbox did not work on my end, it only opened the new tab in Chrome on a Mac.
Best regards,
VictoriaAugust 13, 2018 at 2:36 pm #996701That is odd – I only have a windows machine, but I have tried it on both chrome, edge, and internet explorer and the links open in a lightbox (which is as designed). My only problem is that I want to have the links on mobile open in a new tab.
August 13, 2018 at 3:39 pm #996731Hi brandonmattalo,
Oh, ok, It does open a popup on desktop, sorry for the confusion.
Best regards,
Victoria -
This reply was modified 7 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
