Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #987186
    #987430

    Hi,

    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,
    Ismael

    #987446

    Hi 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.
    #987692

    Hi,

    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,
    Rikard

    #987719
    This reply has been marked as private.
    #987858

    Hi,

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Can NOT use the LIGHTBOX in Images on own template’ is closed to new replies.