-
-
We are using the themes shortcode for lightbox in these pages:
https://dev.lapizd.com/psw/why-planeswing/
https://dev.lapizd.com/psw/playnswing-junior/
and it is not always working, it opens the video on a lighbox sometimes and some other not.
Can you help us look into this?
Thank you!
-
Hello,
Sorry but can you please be more specific? How did you add the lightbox? Can i see a screenshot of the code?
Regards!
-
I added a text area and then went to insert shortcode and added light box
https://www.dropbox.com/s/iho2rurim0gml5b/lighbox.png?dl=0
then added an image from image library and the youtube url for the video,
https://www.dropbox.com/s/f9ib3k90k4tnwys/lightbox2.png?dl=0
-
Hello,
Please go to file specular\includes\register\register_shortcodes.php and find these lines:
if($video != ''){ $output .= '<a class="lightbox-media" href="'.esc_url($video).'">'; }else{ $output .= '<a class="lightbox-gallery" href="'.esc_url($image_link).'">'; }
Replace with these:
if($video != ''){ $output .= '<a class="link a2 lightbox-media lightbox" href="'.esc_url($video).'">'; }else{ $output .= '<a class="link a2 lightbox-gallery lightbox" href="'.esc_url($image_link).'">'; }
We will include these changes in the next theme update.
Best regards!
-
Hi, we followed your instructions and the problem still persists, No Lightbox.
-
Hello,
I replaced the entire function. I made a test and it shows well: https://ibb.co/mJ35s60
Here is the test page: https://dev.lapizd.com/psw/test/Please clear cache and refresh page.
Best regards!
-
Hello,
Thank you for your response. I see what you have done, but unfortunately I keep getting the same result, even with your test page. I have made a small video where you can see how 3 times de result was satisfactory and the rest failed.
https://www.dropbox.com/s/wq0yz4txg1bommz/errorlightbox.mov?dl=0
I really need a solution for this issue, it is the only thing holding this project back.
thank you for your attention.
-
Hello ? can you please let us know something regarding this issue.
-
Hello,
I have just fixed your issue by loading the fancybox on the functions.php file.
wp_enqueue_script('fancybox', get_template_directory_uri(). '/js/fancybox/source/jquery.fancybox.js', true); wp_enqueue_script('fancybox-media', get_template_directory_uri() .'/js/fancybox/source/helpers/jquery.fancybox-media.js', true);
You can reactivate all the plugins that i have disabled before.
In the next update we fix this issue.
Best Regards!
-
You must be logged in to reply to this topic.