Gallery

Home » Shortcodes » Gallery
Gallery2014-03-27T16:49:10+00:00
[vc_row][vc_column width=”1/1″]

Enhancements of WordPress Gallery shortcode

[wm_text_block]The theme adds 2 additional attributes into WordPress native gallery shortcode:

  • flexible – Set this to “1” for masonry style gallery layout. Setting of “0” (or leave it blank, or don’t set it at all) will display standard gallery layout (cropped images of same size).
  • class – This CSS class attribute will be applied on each gallery item container HTML element. You can set custom classes on gallery items, such as frames, removing margins and so on (see theme user manual for more info on additional classes).
[gallery ids="1,2,3,..." flexible="0/1" class="" /]
[/wm_text_block][/vc_column][/vc_row]