-
AuthorPosts
-
July 14, 2017 at 9:38 am #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.July 14, 2017 at 3:45 pm #821236Hey 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,
VictoriaJuly 14, 2017 at 11:38 pm #821482This reply has been marked as private.July 14, 2017 at 11:55 pm #821484Meanwhile 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
July 15, 2017 at 4:53 pm #821735Hi 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-51392Let me know if you need help with it.
Best regards,
VictoriaJuly 16, 2017 at 11:08 am #821953Hi 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?
July 16, 2017 at 5:47 pm #822113Hi abortolotti,
Lightbox can be activated in theme options.
Here is the code you can put in your funtions.phpadd_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,
VictoriaJuly 16, 2017 at 7:22 pm #822139WOW 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
July 17, 2017 at 6:32 am #822333 -
AuthorPosts
- You must be logged in to reply to this topic.