-
AuthorPosts
-
July 18, 2018 at 9:13 pm #987183
Hi, I have a problem and can not use the lightbox on own template pages and in the products.
I used the Shortcode:
do_shortcode("[av_image src='https://www.cmc-modell-autos.de/wp-content/uploads/2018/07/2015-supermodell-des-jahres-m107.jpg' attachment='316' attachment_size='large' align='center' hover='' link='lightbox' target='' caption='' font_size='' appearance='' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff' animation='animation' ][/av_image]");
or tried it with copying the code out of the html
<div class="avia-image-overlay-wrap"><a href="https://www.cmc-modell-autos.de/wp-content/uploads/2018/07/2015-supermodell-des-jahres-m107.jpg" class="avia_image lightbox-added"><img class="avia_image " src="https://www.cmc-modell-autos.de/wp-content/uploads/2018/07/2015-supermodell-des-jahres-m107.jpg" alt="2015 supermodell des jahres" title="" itemprop="thumbnailUrl"><span class="image-overlay overlay-type-image" style="left: -5px; top: 0px; overflow: hidden; display: block; height: 800px; width: 610px;"><span class="image-overlay-inside"></span></span></a></div>
In a standard page it is working:
” https://www.cmc-modell-autos.de/contact “July 18, 2018 at 9:14 pm #987186I also tried this: https://kriesi.at/support/topic/code-snippet-inline-post-content-popup-magnific-popup-shortcode/ without any solution
July 19, 2018 at 2:56 pm #987430Hi,
Thank you for using Enfold.
You don’t have to use the shortcode. Remove the “lightbox-added” class attribute from the html code to let the lightbox script recognize the link.
Best regards,
IsmaelJuly 19, 2018 at 3:24 pm #987446Hi Ismael,
thanks for writing back.
Oh thank you so much!!! – Sometimes, the solution is so simple but hard to find.so to all with this problem:
<a href="<?php echo esc_url( $img_src ); ?>" class="lightbox"> <img src=" <?php echo esc_attr( $img_src_small ); ?> "> </a>
- This reply was modified 6 years, 5 months ago by Raphael.
July 20, 2018 at 6:12 am #987692Hi,
Great, glad you got it working and thanks for sharing your solution. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJuly 20, 2018 at 7:50 am #987719This reply has been marked as private.July 20, 2018 at 2:38 pm #987858Hi,
Awesome! Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.Thank you for using Enfold :)
Best regards,
Ismael -
AuthorPosts
- The topic ‘Can NOT use the LIGHTBOX in Images on own template’ is closed to new replies.