[raw]

The [prime_gallery] is an upgraded responsive version of the WordPress gallery shortcode. You just tell it how many columns you want in desktop, tablet, and mobile layouts, and it’ll automatically resize the images accordingly. Resize the window to see it in action! Also, be sure to click an image to launch a lightbox gallery.

[spacer height=”5px”]

[prime_gallery width=”300″ height=”300″ desktop=”4″ tablet=”3″ mobile=”2″]

[spacer height=”23px”]
[divider]
[spacer height=”24px”]
[/raw]

[raw]

Get The Code

[spacer height=”4px”]

[codebox line_numbers=”true” remove_breaks=”true” lang=”html”]
[[prime_gallery width=”300″ height=”300″ desktop=”4″ tablet=”3″ mobile=”2″]]
[/codebox]
[spacer height=”23px”]
[divider]

[spacer height=”24px”]
[/raw]
[raw]

Customization Options

[list]
[list_item]width – the width and height are used to determine the aspect ratio of the images in the gallery[/list_item]
[list_item]height – the width and height are used to determine the aspect ratio of the images in the gallery[/list_item]
[list_item]desktop – the number of columns in the desktop layout[/list_item]
[list_item]tablet – the number of columns in the tablet layout[/list_item]
[list_item]mobile – the number of columns in the mobile layout[/list_item]
[/list]
[/raw]

Print Friendly