FreeWidget

Media Grid widget documentation

Media Grid shows the pictures you add as a gallery. Add the items first, then choose the layout, the filter and what happens on click.

Overview

The Xtra Media Grid is a free Elementor widget that turns a list of pictures into a responsive gallery. Each item has an image, an optional title and an optional category. The widget builds the filter buttons from those categories, so visitors can narrow a portfolio or photo wall down to what they care about without a page reload.

Clicking a picture opens a lightbox with a caption, previous and next arrows, keyboard control and a close button. If you would rather send visitors somewhere else, give an item an external link and it opens that link instead. Hover overlays come in four styles (fade, slide up, zoom or none) and show the item title on top of a color or gradient you choose.

Everything is styleable from the Style tab: filter buttons in their normal, hover and active states, the picture box with its border, shadow and radius, the overlay, the title and the lightbox backdrop. Choose one to six columns for every device, set the gap, and optionally crop all pictures to the same aspect ratio for a tidy grid.

You will find the widget in the Elementor panel under the Xtra widgets, or search for “Media Grid”. It is part of the free Xtra Addons for Elementor plugin — see the Media Grid widget page for live demos.

Quick start

  1. Drag the Media Grid widget into a container.
  2. Under Content → Gallery Items, edit the list. For each item choose the Image, write a Title (shown on hover and as the lightbox caption) and, for filtering, a Category.
  3. To put an item in several categories, separate them with commas, for example "Branding, Print". Leave the Category empty to show the item only under All.
  4. If a tile should open a web page instead of the lightbox, fill in External Link (optional) for that item.
  5. Under Content → Layout & Filter, choose the Layout, the number of Columns and the Gap for each device, and switch Show Filter Bar and Lightbox on or off.
  6. Choose the Hover Overlay Style (Fade Dark, Slide Up, Zoom Image or None) and decide whether Animate on Scroll stays on.
  7. Open the Style tab. Under Items set the Image Aspect Ratio, radius, shadow and hover image scale. Under Filter Bar, Overlay, Item Title and Lightbox adjust colors and typography.

Options reference

All 39 options of the Media Grid widget, as they appear in the Elementor panel. Many options are responsive and can be set separately for desktop, tablet and mobile.

Content tab 11 options

Gallery Items

OptionTypeValues and notes
Items Repeater list
Image Resolution Select Thumbnail - 150 x 150Medium - 300 x 300Medium Large - 768 x 0Large - 1024 x 10241536x1536 - 1536 x 15362048x2048 - 2048 x 2048Woocommerce Thumbnail - 300 x 300Woocommerce Single - 600 x 0Woocommerce Gallery Thumbnail - 100 x 100FullCustom
Image Dimension Image size You can crop the original image size to any custom size. You can also set a single value for height or width in order to keep the original size ratio.

Layout & Filter

OptionTypeValues and notes
Layout Select GridMasonry
Columnsresponsive Number
Gapresponsive Slider
Show Filter Bar On / off
"All" Button Label Text
Lightbox On / off
Hover Overlay Style Select Fade DarkSlide UpZoom ImageNone
Animate on Scroll On / off

Style tab 28 options

Filter Bar

OptionTypeValues and notes
Alignmentresponsive Choice LeftCenterRight
Button Gapresponsive Slider
Bar Bottom Spacingresponsive Slider
Typographyresponsive Typography Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing.
Text Color Color
Background Color
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Color Color
Button Paddingresponsive Dimensions
Border Radiusresponsive Dimensions

Items

OptionTypeValues and notes
Image Aspect Ratioresponsive Select Auto1:1 Square4:33:216:93:4 Portrait
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Color Color
Box Shadow Box shadow
Image Scale Slider
Border Radiusresponsive Dimensions

Overlay

OptionTypeValues and notes
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Paddingresponsive Dimensions

Item Title

OptionTypeValues and notes
Typographyresponsive Typography Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing.
Color Color
Zoom Icon Size Slider
Zoom Icon Color Color

Lightbox

OptionTypeValues and notes
Backdrop Color Color
Typographyresponsive Typography Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing.
Caption Color Color

Tips

  • Give every item a Title. It is shown in the hover overlay, used as the image description for screen readers and displayed as the lightbox caption.
  • Set an Image Aspect Ratio such as 4:3 or 1:1 when your pictures have different sizes. With Auto each picture keeps its own height.
  • Use consistent category names with the same spelling and capitalization, because each unique name becomes its own filter button.
  • Upload images at roughly twice the size they are displayed, since the widget uses the file you pick without generating a smaller copy.
  • Keep titles short. They sit in the middle of the picture in the hover overlay, above the plus icon on tiles that open the lightbox.

Frequently asked questions

Is the Xtra Media Grid widget free?

Yes. Media Grid is included in the free Xtra Addons for Elementor plugin and does not need Elementor Pro.

How do I add a filter to an Elementor gallery?

Write a category on each gallery item. When at least one item has a category and Show Filter Bar is on, Media Grid creates one button per unique category plus an All button. Clicking a button shows only the matching items.

Can one picture belong to more than one category?

Yes. Separate the categories with commas, for example "Web, App". The picture appears when either of its categories is selected.

What is the difference between Grid and Masonry?

In Grid, pictures sit in aligned rows and an Image Aspect Ratio crops them to the same shape. Masonry is meant for pictures that keep their own proportions (aspect ratio on Auto). In browsers without native CSS masonry the rows stay aligned and each picture sits at the top of its row, so for a perfectly even look choose Grid with an aspect ratio.

Can a picture open a page instead of the lightbox?

Yes. Fill in External Link (optional) on that item. It opens the link, in a new tab if you chose that, and the lightbox is skipped for that tile. Other tiles in the same grid still open the lightbox.

Does the lightbox work with the keyboard?

Yes. The left and right arrow keys move between pictures and Esc closes it. The close, previous and next buttons have accessible labels, and the lightbox is marked as a dialog.

See the Media Grid widget in action

Live demos, features and use cases are on the widget page.

Open widget page