Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #821055

    Hi Guys,

    I was following this thread to disable the lightbox modal window on an image, as I’m linking the image to a lead capture pop up window and I was successful if only for the fact that I actually disabled the lightbox on the whole page, so the regular photogalleries are no longer visibile.

    I need to have just that image element lightbox disabled. I guess I should probably wrap it into a color section element and give it a name, then hook up some code, maybe?

    Could you help with that?

    Here is the page: https://annamariaislandcondorentals.com/absolute-anna-maria-island-condo/
    if you scroll down to the ‘Free Insider Guide” section and you click on the image you’ll see the pop up I mean.

    leadcaputre

    #821236

    Hey Antonio,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look? Could you enable the lightbox again and we will try to take it from there.

    Best regards,
    Victoria

    #821482
    This reply has been marked as private.
    #821484

    Meanwhile I did as you asked and canceled the code from the functions.php file that I inserted as per thread I mentioned at the beginning of this post.
    Strangely though, no lightbox seems to work anymore now anyway and I have no idea why.
    I have also deactivated a couple of plugins and cleared browser cache, yet lighbox seems to have disappeared.

    Hope you can look into that and find the fix.

    Thank you so much

    Antonio

    #821735

    Hi Antonio,

    I enabled the lightbox, you can use the code from the link below:
    https://kriesi.at/support/topic/disable-lightbox-slideshow-on-specific-pages/#post-51392

    Let me know if you need help with it.
    Best regards,
    Victoria

    #821953

    Hi Victoria,

    the post you lined is a little too convoluted and complicated…sorry.

    Would be good if you could let me know simply which code should I sue to disable only that one image element within the page that I mentioned, so it doesn’t affect all the galleries in the same page.

    Thank you for reactivating the lightbox. May I ask how you did that as well?

    #822113

    Hi abortolotti,

    Lightbox can be activated in theme options.

    View post on imgur.com


    Here is the code you can put in your funtions.php

    
    add_action('wp_footer', 'ava_new_custom_script');
    function ava_new_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$(window).load(function() {
    		jQuery('.page .tve-leads-two-step-trigger.tl-2step-trigger-7883').find('img').unwrap();
    	});
    })(jQuery);
    </script>
    <?php
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #822139

    WOW Victoria,

    You’re a star! Thank you SO much, problem finally solved :)

    Have a great day and thank you for getting back to me on this over the weekend. I know it’s not usual to work on weekends so I appreciate it even more!

    Antonio

    #822333

    Hi Antonio,

    Yes she is! :-)

    Glad we could help with your problem. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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