Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #579738

    WP 4.4.2, Enfold 3.4.7

    I’ve got a working video lightbox that I added to a page but I actually need it in a sidebar widget. I copied and pasted the working code into a widget but it links direct to youtube instead of displaying in a lightbox. This is my code:

    <div class="avia-image-container  av-styling-no-styling   avia-builder-el-1  el_after_av_table  avia-builder-el-last  avia-align- " itemscope="itemscope" itemtype="">
    <div class="avia-image-container-inner">
    <a href="" class="avia_image mfp-iframe lightbox-added">
    <img class="avia_image " src="/wp-content/uploads/2016/02/tv1.jpg" alt="" title="tv1" itemprop="contentURL">
    <span class="image-overlay overlay-type-video" style="left: -5px; top: 0px; overflow: hidden; display: block; height: 150px; width: 253px;">
    <span class="image-overlay-inside">

    Any idea how I can make it work in the sidebar?


    Hey Rustybucket!

    Try changing the link HTML from this.

    <a href="" class="avia_image mfp-iframe lightbox-added">

    To this.

    <a href="" class="avia_image" rel = "lightbox">

    Best regards,


    Awesome. Thanks very much Elliott.



    Glad we could help :-)


Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.