How do I add an alternate template in a loop grid?


Loop grids are great for creating a consistent way to display a list of posts, products, listings and more. But sometimes you want to add something different to your loop. For instance, you may want to give every third product a special design. 

Alternate loop templates allow you to place these customized templates inside your loop. 

Creating an alternate template

  1. Create a template for a loop item, this will be your alternate template. Learn how to create a new loop item using the Theme Builder. For this example, we have created a loop item template called, Elementor Ad.
  2. Open a page in the Elementor Editor.
  3.  Create a loop grid or select an existing loop grid on the page.
  4. Select the loop grid widget using either the Navigator or by right-clicking the upper-right corner of the widget.
  5. In the Content tab, click the toggle to turn on Apply an alternate template.
  6. Click Alternate Template to select which loop item you’re going to insert into the loop.
  1. Enter the name of the template you want to use. You could also create a new alternative template at this point by clicking Edit Template. Clicking Edit Template from the widget panel will take you to the Theme Builder, where you’ll be able to create a new Loop Item. 
  2. Use Position in grid to select the position of the alternative template. In this example we applied the alternate template on the item in the 5th position.

Other options

Multiple alternative templates

You are not limited to one alternative template. There are two ways to introduce other alternative templates:

  1. Click the copy icon to copy the current alternative template, which you can then edit.
  2. Click Add Item to add a new alternative template.

Apply once

By default, your alternative template will appear throughout your loop, according to how you position it in the grid (e.g. if it’s in position 5, it will appear as every fifth loop item). 

The Apply Once toggle allows you to change this default setting and have your alternative template appear only one time in your loop.

Column Span

By default, alternative templates will take up the column width of one item in your grid. Use the Column Span dropdown to have the alternative template take up more column space.

Share it on social networks

Was this article helpful?

Get Started With Elementor Today

Join millions of professionals who use Elementor to build WordPress websites faster and better than ever before

On this page

Birthday Sale: Up to 50%30% Off
Birthday Sale: Last 24 hours!
Birthday Sale: Last 24 hours:
Wait! You get 30-Day Money-back Guarantee

You have nothing to lose – but the discount