Tagged: Plugin Conflict
Hi,
usage of the content timeline plugin causes conflict in such way that the images open in 2 lightboxes like overlays one upon the other. I contacted the plugin crew first, but was asked to get back to the theme author.
‘Content timeline’ uses prettyphoto; this might cause the conflict. Could you please give me a hint of how to stay with enfold and using the timeline plugin?
I tried to switch off the lightbox from the theme options which does not help.
Any support is appreciated. thanks
Regards Katharina
Hey!
You can disable the Enfold lightbox script in the Theme Options.
Best regards,
Josue
Hello Josue – and thanks for the answer.
Well, I went this way initially but I don’t want to disable the Enfold lightbox for the whole project. Is it possible to disable it on a per-page basis? Thanks again,
best regards Katharina
Hey!
Try adding this at the very end of your theme / child theme functions.php file:
function disable_popup() {
if(is_page(array(2, 3, 4))) wp_dequeue_script( 'avia-popup' );
}
add_action( 'wp_enqueue_scripts', 'disable_popup', 100 );
Change 2, 3, 4 for the pages (ID) where you don’t want the popup script to be included.
Cheers!
Josue
Hi Josue,
thanks a lot; works like charm. As always with your outstanding support.
Best regards Katharina