PrettyPhoto lightbox having issue with elementor lightbox
-
Hey, I’m having some issues with the PrettyPhoto and Elementor Lightbox for the reviews section images.
If I disable the Elementor lightbox, PrettyPhoto works correctly but after filtering the reviews by stars, the PrettyPhoto lightbox doesn’t work anymore.
And when I dequeue PrettyPhoto by using a PHP code then when someone clicks on the uploaded images in the reviews for the first click, it doesn’t show anything. On the second click, the Elementor lightbox works correctly. If the first click also shows Elementor lightbox then my issue will be resolved.
So I’m unable to use any one of the above options because PrettyPhoto is having issues even when I dequeue it. Please help.
Right now in the given link, the PrettyPhoto is dequeued using the following code:
function prettyphoto_dequeue_script() {
wp_dequeue_script(‘prettyPhoto’);
wp_dequeue_script(‘prettyPhoto-init’);
}
add_action(‘wp_print_scripts’, ‘prettyphoto_dequeue_script’, 100);I have also added this to the css stylesheet:
.single-product .pp_pic_holder.pp_woocommerce, .single-product .pp_overlay {
display: none !important;
}You will see nothing appears when you click on the images in the review section. When you click the second time then the Elementor lightbox will appear.
The page I need help with: [log in to see the link]
- The topic ‘PrettyPhoto lightbox having issue with elementor lightbox’ is closed to new replies.