Hi, is there a way to have an enfold button (button from content elements) open a lightbox where I could embed url content or iframe?
I want the button to open this link to a virtual tour: https://round.me/tour/37592/view/91423/
However, it would be great if it could open it up in a lightbox with embedded content rather than a new window or same window
I tried this option, but it is not working for me:
https://kriesi.at/support/topic/using-button-shortcode-to-open-a-video-in-a-lightbox/#post-84986
I tried this code to recreate the button, and it is triggering the lightbox, but the lightbox is not pulling in the content
<div class=”avia-button-wrap avia-button-left avia-builder-el-19 el_after_av_button el_before_av_textblock “><span class=”avia_iconbox_title”>360 Virtual Tour</span></div>
Thanks.
Hey xuamox!
not sure what you need, but you could just use a normal button to link to your photo gallery, don’t you? Though is sounds to me as you would need to search for a plugin with such a special function you need.
Best regards,
Andy
I edited my question to try and be more specific and clear as to what I am trying to do. Thanks.
OK, I did some more digging in the forums and it looks like ?iframe=”true” added to url field of the button element will open the lightbox.
So thanks for that update, that works well.
My only issue now is that the lightbox displays the next and previous arrows. Is there any way to hide those?
Hey!
glad you could solve it!
Use this code to hide the arrows:
button.mfp-arrow.mfp-arrow-right.mfp-prevent-close {
display: none;
}
button.mfp-arrow.mfp-arrow-left.mfp-prevent-close {
display: none;
}
Regards,
Andy