New home › Forums › Pro Add-on › Troubleshooting › Disable slideshow/carousel in info Window
Tagged: Carousel, info window, slideshow
- This topic has 3 replies, 2 voices, and was last updated 8 months, 3 weeks ago by Matthew.
-
AuthorPosts
-
December 27, 2022 at 5:58 pm #75870mike_barry_caParticipant
Hi, I ‘m trying to disable the automatic carousel inside the Info Window.
January 3, 2023 at 7:59 am #75899MatthewModeratorHi Mike,
Thank you for getting in touch with us, we do appreciate your time.
You may hide/disable the carousel in the infowindow by enabling the “Hide the gallery/image field” setting (Maps -> Settings -> Infowindows)?
Once this has been done, please do let me know if this helps?
I look forward to hearing back from you.
Kindest Regards,
MatthewJanuary 3, 2023 at 4:25 pm #75919mike_barry_caParticipantNo, I’d like the image gallery to be there just not automatically slide to the next image.
Can we do that?January 4, 2023 at 10:06 am #75929MatthewModeratorHi Mike,
Thank you for your response.
Yes this is possible using some custom JS code which you may find below:
jQuery(function($){ WPGMZA.Gallery.prototype.parseConfig = function(settings, fullSize){ var config = { autoplay : false, timer : 5000, pauseOnFocus : true, resize : true, navigation : true, lightbox : true }; if(fullSize){ config.fullSize = true; } if(settings && settings instanceof Object){ for(var i in settings){ if(config[i]){ config[i] = settings[i]; } } } return config; } })
Please may you save the above code into the “Custom JS” setting block (Maps -> Settings -> Custom Scripts/Advanced Settings)?
Once this has been done, please may you clear your browser cache and confirm if this helps?
I look forward to hearing back from you.
Kindest Regards,
MatthewJanuary 6, 2023 at 3:23 pm #75978mike_barry_caParticipantHi, thanks for your help. But it’s still auto playing after adding this code and clearing my cache.
January 9, 2023 at 10:17 am #75985MatthewModeratorHi Mike,
Thank you for your response.
Please may I ask if you would be open to providing me with the link to your map so that I may take a closer look?
I look forward to hearing back from you.
Kindest Regards,
Matthew -
AuthorPosts
- You must be logged in to reply to this topic.