Disable slideshow/carousel in info Window

New home Forums Pro Add-on Troubleshooting Disable slideshow/carousel in info Window

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #75870
    mike_barry_ca
    Participant

    Hi, I ‘m trying to disable the automatic carousel inside the Info Window.

    #75899
    Matthew
    Moderator

    Hi 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,
    Matthew

    #75919
    mike_barry_ca
    Participant

    No, I’d like the image gallery to be there just not automatically slide to the next image.
    Can we do that?

    #75929
    Matthew
    Moderator

    Hi 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,
    Matthew

    #75978
    mike_barry_ca
    Participant

    Hi, thanks for your help. But it’s still auto playing after adding this code and clearing my cache.

    #75985
    Matthew
    Moderator

    Hi 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

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