Forum Replies Created
-
AuthorPosts
-
Hello,
But what is the difference? Can’t you tell me just what part of lightbox am I missing which comes with a shortcode? I load the image from FTP because I have couple hundreds of images which has to be loaded depending on the object, and adding them through media library is kinda time consuming.Still waiting for an answer…
Any update on this?
Labas!
I was including a raw html, instead of a shortcode. The shortcode works fine, however, I load the image from a ftp folder, instead of wp media library, and I do not have an attachment ID, which is needed for a shortcode to work
Kind regards,
MindaugasHello,
Basically I want to add an image in php template which would open in a lightbox, not in a new tab.
Kind regards.
MindaugasThis is the html code:
<div class="avia-image-container av-styling- avia-builder-el-6 avia-builder-el-no-sibling avia-align-center " itemscope="itemscope" itemtype="https://schema.org/ImageObject"><div class="avia-image-container-inner"><a href="*img_URL*" target="_blank" class="lightbox mfp-iframe avia_image lightbox-added"><img class="avia_image " src="*img_URL*" alt="" title="get" itemprop="contentURL"><span class="image-overlay overlay-type-image" style="left: -5px; top: 0px; overflow: hidden; display: block; height: 227px; width: 364px;"><span class="image-overlay-inside"></span></span></a></div></div>
- This reply was modified 7 years, 10 months ago by MCepkus.
Hello,
Thank you, but I am not sure what do you mean by that post. The image is an actual html markup with target attribute and lightbox class added. It still opens up in a new tab not a lightbox. If I add the image on Layout Editor the image lightbox works, however, I copy-paste the same html of the image the lightbox does not work
-
AuthorPosts