Skip to content

Shortcodes

SM edited this page Apr 20, 2015 · 2 revisions

You can use shortcodes in page/post content to customize how Simple Lightbox behaves:

[slb_exclude]

You can manually exclude parts of a post from being activated by SLB by using the [slb_exclude] shortcode. Any content enclosed by this shortcode will not be activated by SLB.

Usage

Some text here.  Links up here will be activated normally.

[slb_exclude]Nothing between these tags will be activated by SLB[/slb_exclude]

More text here. This content will be activated normally.

[slb_group]

You can manually group links in content using the [slb_group] shortcode. Grouped links are displayed in the lightbox as a slideshow.

Usage

Some text here.

[slb_group]Links between these tags will be grouped together.[/slb_group]

More text here.

By default, links grouped using the [slb_group] shortcode will be assigned to an automatically-generated group. If you want to assign a specific group to some links, you can use the id attribute in the shortcode. This allows you to group links in different parts of a post (or across multiple posts) together.

Some text here

[slb_group id="group-1"]Links in here will be grouped together[/slb_group]

More text here

[slb_group id="group-1"]These links will be in the same group as the ones above[/slb_group]
Clone this wiki locally