Masonry

The Masonry layout is a special type of gallery layout where items are shown in an optimal position based on their size and the available space on a page. This layout creates a visually pleasing, staggered effect.

Available Settings

  • Columns – Set the number of masonry columns.
  • Images Aspect Ratio – Set custom aspect ratios for images. By default, the original image ratios are used.
  • Horizontal Order – Arrange items to (mostly) maintain a horizontal left-to-right order. This option might require some experimentation, as it may not always work as expected.
  • Gap – Set the spacing between gallery items.
  • Vertical Gap – Optionally set the vertical spacing between gallery items.

Columns

The Columns setting determines how many vertical columns your masonry layout will have. To adjust:

  1. Find the β€œColumns” option in the Masonry layout settings.
  2. Enter a number or use the up/down arrows to set the desired number of columns.

Remember, the actual number of columns may vary on smaller screens to ensure responsiveness.

Images Aspect Ratio

This setting allows you to override the original aspect ratios of your images. To use:

  1. Locate the Images Aspect Ratio option.
  2. Select your desired ratio (e.g., 16:9, 4:3, 1:1).
  3. Use Auto to use the original image ratios.

Horizontal Order

The Horizontal Order option attempts to maintain a left-to-right order of items while still optimizing for vertical space. To enable:

  1. Find the β€œHorizontal Order” toggle in the settings.
  2. Switch it on to activate.

Note: This option may not always produce perfect results and might require some experimentation.

Gap Settings

Gap β€“ controls the horizontal space between your gallery items. To adjust:

  1. Find the Gap option in the Masonry layout settings.
  2. Enter a value (in pixels) for the desired spacing.

Vertical Gap β€“ allows you to set a different spacing for the vertical gaps between items. This can be useful for creating more complex layouts. To adjust:

  1. Look for the Vertical Gap option in the settings.
  2. Enter a value (in pixels) for the vertical spacing.
  3. If left empty, it will use the same value as the horizontal Gap.
Was this page helpful?