Using this shortcode you can display custom HTML content, shortcodes, images and web pages in a lightbox. Shortcode documentation.

Click here to open lightbox
[su_lightbox type="image" src="https://getshortcodes.com/wp-content/uploads/sites/2/2017/07/city-1-720-480.jpg"]Click here to open lightbox[/su_lightbox]
Option name Possible values Default value
type
Select type of the lightbox window content
iframe (Iframe)
image (Image)
inline (Inline (html content))
iframe
src
Insert here URL or CSS selector. Use URL for Iframe and Image content types. Use CSS selector for Inline content type.
Example values:
http://www.youtube.com/watch?v=XXXXXXXXX – YouTube video (iframe)
http://example.com/wp-content/uploads/image.jpg – uploaded image (image)
http://example.com/ – any web page (iframe)
#my-custom-popup – any HTML content (inline)
Any text value

none

class
Additional CSS class name(s) separated by space(s)
CSS class name(s) separated by space(s)

none