-
AuthorPosts
-
December 12, 2014 at 7:41 pm #367452
Hi, I look this topic because I have same problem.
The solution proposed by Elliot does not work.Theme Punch topic explains how to avoid double lightbox call, it works well with a standard theme (TwentyEleven) but not with Enfold.
If I disable the lightbox for Enfold it works. But there is more of lightbox in the rest of the website.Any ideas ?
Regards.
Jean
December 13, 2014 at 6:12 pm #367721Hey Jean!
Thank you for using Enfold.
You just need to edit the single quotations marks on the code. Use this instead:
add_action( 'wp_footer', 'enfold_customization_customscript' ); function enfold_customization_customscript(){ ?> <script type = "text/javascript"> jQuery(document).ready(function(){ // FancyBox: when the theme adds the fancybox class jQuery('.esg-grid .fancybox').off('click.fb'); // FancyBox: when the theme just connects the hyperlink, without adding a fancybox class jQuery('.esgbox').off('click.fb'); // ColorBox jQuery('.esgbox').removeClass('cboxElement'); }); </script> <?php }
Regards,
IsmaelJuly 30, 2015 at 2:23 pm #480696Hi, same problem here!
I added the above code at the very end of functions.php, but it had no effect.
Anyway, is this code supposed to disable the lightbox in Enfold, or in EssentialGrid?
Could you explain both methods?
Thanks,
ThomasJuly 31, 2015 at 2:22 pm #481321Hi!
Is “essential grid” a plugin? Are you wanting to use their lightbox or our lightbox? If you want to use ours then you’ll need to contact the plugin authors and ask how to stop it from opening up in lightbox.
Regards,
ElliottJuly 31, 2015 at 2:24 pm #481322Hi Elliot. Thanks for your answer.
Indeed, EssentialGrid is a plugin.
Let’s say in our case I’d like to disable the Enfold theme lightbox. How can I do so ?August 3, 2015 at 7:46 am #481920Hi,
You can disable it by going to Theme Options and unchecking the Lightbox Modal Window option.
Regards,
RikardMarch 15, 2017 at 9:55 pm #761634when disabling the ‘Lightbox Modal Window’ in the enfold settings, it disables ALL lightboxes .. including Essential grids lightbox..
March 17, 2017 at 6:03 am #762337Hi @nulrick,
That should not be the case, are you sure that the third party code you are using is working properly?
Best regards,
RikardMarch 17, 2017 at 6:31 am #762347well I can’t know 100% other than I have used this plugin/theme combo before and I had received a css/js hack from your team to solve this problem.. and now I’ve updated my enfold theme and its not working anymore, even when I try the same hacks.. the plugin is essential grid from theme punch, which so far has been a pretty solid plugin. If possible can you look at my site in order to determine where the problem is coming from? I just purchased a support renewal for this theme in hopes of resolving this. I’ll be glad to send my login info.
March 21, 2017 at 7:10 am #764038 -
AuthorPosts
- You must be logged in to reply to this topic.