Part 14: Mastering The Divi 5 Loop Builder

by | May 28, 2026 | Etcetera | 0 comments

Welcome again to the Divi 5 Mastery Direction. In Phase 13: Growing Interactive Off-Canvas Parts (Popups & Extra), we used Canvases and Interactions so as to add interactive UI to our coworking website online. Now, it’s time to construct with one in every of Divi 5’s maximum robust dynamic content material equipment: the Loop Builder.

On this put up, we’ll skip the standard Weblog module and construct a customized Weblog web page the use of the Loop Builder, dynamic content material, Flexbox, and the Pagination module. By means of the tip, you’ll have a responsive Weblog web page with featured pictures, put up titles, excerpts, metadata, Learn Extra buttons, and pagination.

The general format may even use the similar Design Variables and Presets we created in Part 3 and Part 4, so it remains hooked up to the worldwide design gadget.

Let’s get began.

What The Divi 5 Loop Builder Does

Should you’ve labored with WordPress for any duration of time, you’ve almost certainly heard of the Loop. It’s the WordPress mechanism that retrieves and shows content material comparable to posts, pages, merchandise, classes, authors, or customized put up sorts.

In previous Divi workflows, the Weblog module was once the quickest technique to output a put up feed. It nonetheless works neatly for easy weblog layouts. Alternatively, it additionally comes with a hard and fast construction, so it’s not all the time best when you wish to have entire keep watch over over the repeated merchandise design.

Divi 5’s Loop Builder will give you that keep watch over visually. As a substitute of styling a predefined Weblog module format, you’ll be able to design the repeated merchandise your self with Divi components, then attach each and every a part of the format to dynamic content material.

Why The Loop Builder Issues

The Loop Builder turns out to be useful when you wish to have a dynamic format that also feels absolutely customized. You design one merchandise, configure the question, and Divi repeats that design for each and every matching merchandise.

Listed below are the principle benefits:

  • Customized format keep watch over: Construct the repeated merchandise with Divi components as an alternative of being restricted to 1 predefined module format.
  • Dynamic content material fields: Pull in content material comparable to featured pictures, put up titles, phrases, authors, submit dates, excerpts, and hyperlinks.
  • Versatile question choices: Show posts, merchandise, phrases, customers, menus, customized put up sorts, and supported customized box information relying for your setup.
  • Design gadget consistency: Use the similar Design Variables and Presets from previous portions of the route so each loop merchandise suits the remainder of the website.
  • Theme Builder make stronger: Use loops inside of templates for archives, seek effects, product archives, and different dynamic perspectives.

Get ready Your Web page For The Loop Builder

Sooner than we begin development, remember to have sufficient content material to check the format. A couple of mins of preparation will make the Loop more straightforward to preview, paginate, and refine.

Create Pattern Weblog Posts

Create a minimum of 6 to eight revealed weblog posts. Each and every put up will have to come with a featured symbol, a name, an excerpt, and any related classes or tags you wish to have to show.

Should you wouldn’t have content material but, use a test-content plugin comparable to FakerPress to generate placeholder posts for the educational.

Generate sample blog posts with FakerPress

Having a minimum of 6 posts provides the Loop Builder sufficient content material to show and allows you to verify pagination and question adjustments later.

Create A Weblog Web page

Create a brand new web page named Weblog. Submit the web page and open it within the Visible Builder.

Upload a Heading module and any introductory content material you wish to have above the loop. This provides the web page a transparent name earlier than the dynamic put up checklist starts.

See also  10 Best WordPress Block Themes for 2023 (Reviewed)

Create a Blog page layout in Divi 5

Construct A Weblog Format With The Loop Builder

On this phase, we’ll create a customized Weblog web page that mechanically shows posts in a repeated format. The workflow has 4 primary portions.

  • Construct one post-card format.
  • Flip that format right into a Loop component.
  • Attach each and every module to dynamic content material.
  • Upload pagination and responsive changes.

By means of the tip of this instructional, you’ll have a purposeful weblog put up Loop for the coworking website online.

Step 1: Create The Row Construction

Sooner than enabling the Loop, construct the repeated merchandise format. Get started by way of including a new Segment to the Weblog web page. Within that Segment, upload a two-column Row.

Add a two-column Row in the Divi 5 Visual Builder

Open the Row settings. Within the Design tab, make bigger the Format possibility workforce. Set each Horizontal Hole and Vertical Hole to 0px.

Set Row gap values in Divi 5

Subsequent, follow the Rounded – Common preset to the Row’s Border possibility workforce.

Apply a border preset in Divi 5

Now configure each and every Column. Click on into the first Column to edit it.

Edit the first Column in Divi 5

Within the Design tab, make bigger the Sizing possibility workforce and set Column Elegance to 2/5.

Set the first Column Class to 2/5 in Divi 5

Transfer to the 2nd Column. Within the Design tab, make bigger the Format possibility workforce. Follow the Spacing – XSmall variable to each the Horizontal Hole and Vertical Hole fields.

Apply gap variables to a Column in Divi 5

Nonetheless in the second one Column, make bigger the Sizing possibility workforce and set Column Elegance to 3/5.

Set the second Column Class to 3/5 in Divi 5

Subsequent, make bigger the Spacing possibility workforce and follow the Spacing – Medium variable to all 4 Padding fields.

Apply padding variables to a Column in Divi 5

In any case, cross to the second one Column’s Content material tab. Increase the Background possibility workforce and follow the Background – Gentle Grey coloration variable to the Background Colour box.

Apply a background color variable to a Column in Divi 5

Step 2: Design The Repeated Submit Merchandise

With the Row construction able, design the put up merchandise that the Loop Builder will repeat. Within the first Column, upload an Symbol module.

Add an Image module in Divi 5

Within the 2nd Column, upload a Textual content module. This will likely show the put up phrases. Within the module’s Content material tab, follow the White coloration variable to the Background Colour box.

Set the Text module background color in Divi 5

Transfer to the Design tab, make bigger the Textual content possibility workforce, and follow the Frame Small variable to the Textual content Measurement box.

Apply a text size variable in Divi 5

Increase the Sizing possibility workforce and set Alignment to Get started.

Set module alignment to Start in Divi 5

Within the Spacing possibility workforce, follow the Spacing – XSmall variable to the left and proper Padding fields.

Apply padding to a Text module in Divi 5

Beneath the Textual content module, upload a Heading module and follow the Heading 3 preset.

Apply a Heading preset in Divi 5

Subsequent, upload a Module Group underneath the Heading. Throughout the Staff, upload two Textual content modules. Those will show the writer and submit date.

Add a Module Group in Divi 5

Open the Staff settings. Within the Design tab, make bigger the Format possibility workforce.

Open Group layout settings in Divi 5

Then, make bigger the Sizing possibility workforce and set Alignment to Get started.

Set Group alignment in Divi 5

Within the first Textual content module within the Staff, stack two presets: Darkish Textual content and Small.

Stack Text presets in Divi 5

In that very same Textual content module, cross to the Design tab and make bigger the Textual content possibility workforce. Within the Paragraph and Hyperlink tabs, follow the Textual content – Darkish Clear variable. Repeat the similar coloration settings for the second one Textual content module within the Staff.

Apply a transparent text color variable in Divi 5

Beneath the Staff, upload some other Textual content module and follow the Darkish Textual content preset. This module will show the put up excerpt.

Apply the Dark Text preset in Divi 5

In any case, upload a Button module on the backside of the second one Column and follow the Textual content – Number one preset.

Apply a Button preset in Divi 5

Step 3: Allow The Loop

Now, flip the Row right into a dynamic Loop. Make a selection the Row, cross to the Content material tab, make bigger the Loop possibility workforce, and permit Loop Component.

Enable Loop Element in Divi 5

Subsequent, configure the question. Set Order to Ascending. Within the Posts According to Web page box, input 6.

If the loop is ordered by way of date, this shows six posts in oldest-first order. You’ll be able to exchange the order later if you wish to have the latest posts to seem first.

Set Loop order and posts per page in Divi 5

Step 4: Follow Dynamic Content material Fields

With the Loop enabled, attach each and every module to the proper dynamic content material box.

Make a selection the Symbol module within the first Column. Within the Content material tab, hover over the Symbol box to show the Insert Dynamic Content material icon. Then, select Loop Featured Symbol.

Subsequent, choose the primary Textual content module in the second one Column and assign Loop Submit Phrases to the Frame box.

Assign Loop Post Terms in Divi 5

For the Heading module, assign Loop Submit Name to the Heading box.

Assign Loop Post Title in Divi 5

Within the Staff, choose the primary Textual content module. Follow Loop Creator dynamic content material, and input by way of within the Sooner than box so the output reads like an writer byline.

See also  How you can Use Freebies to Optimize Your Lead Era

Assign Loop Author dynamic content in Divi 5

For the second one Textual content module, choose Loop Submit Date. Within the Customized Date Layout box, input M, Y. This shows the put up’s abbreviated month and 12 months.

Assign Loop Publish Date in Divi 5

For the Textual content module underneath the Staff, choose Loop Excerpt.

Assign Loop Excerpt in Divi 5

In any case, set the Button Textual content to Learn Extra and assign Loop Hyperlink to the Button Hyperlink URL box.

Scroll in the course of the format to substantiate that the dynamic content material quite a bit accurately and that six posts are displayed.

Step 5: Upload Pagination

Now that the Loop shows posts dynamically, give guests a technique to transfer thru further posts. Upload a brand new single-column Row underneath the Loop Row, then upload the Pagination module inside of it.

Within the Pagination module’s Content material tab, be sure that the proper Loop Row is chosen because the Goal Loop.

Select the Target Loop for the Pagination module in Divi 5

Preview the web page and verify the pagination at the entrance finish.

Step 6: Make The Loop Responsive

The Flexbox-based format provides the Weblog web page a robust responsive start line. Nonetheless, it’s value reviewing the format throughout Pill and Telephone breakpoints.

Take a look at typography, spacing, symbol measurement, button placement, and the way the 2 Columns stack on smaller monitors. Use Customizable Responsive Breakpoints, Construction Templates, and the Responsive Editor for any focused changes.

Get started by way of enabling any further breakpoints you wish to have to check. Click on the ellipsis menu to open the Breakpoints modal, the place you’ll be able to permit or disable Divi’s to be had breakpoints.

Cycle thru each and every lively breakpoint and search for spacing, alignment, and clarity problems.

Follow A Construction Template

On decrease breakpoints, simplify the Row construction so the put up content material stacks cleanly.

Transfer to the Pill breakpoint. Make a selection the principle Row that comprises the Loop. Pass to the Content material tab, make bigger the Parts possibility workforce, and click on the Follow Construction Template button.

Apply a Structure Template in Divi 5

Select a single-column construction. This converts the two/5 + 3/5 desktop format right into a stacked format on Pill and smaller monitors.

Use The Responsive Editor

For focused adjustments throughout breakpoints, use the Responsive Editor on any appropriate surroundings.

For instance, choose the Segment underneath the Loop. Within the Design tab, make bigger the Spacing possibility workforce and hover close to the Padding fields to show the Edit Responsive Values icon.

Open Edit Responsive Values in Divi 5

Click on the icon to open the Responsive Editor panel. From there, alter padding values for the breakpoints that want adjustments.

Responsive Editor panel in Divi 5

Use Loops In The Theme Builder

The Loop Builder additionally works within the Theme Builder. As a substitute of rebuilding the similar format for each archive, you’ll be able to create a template as soon as and let it pull the proper content material for the web page being seen.

This turns out to be useful for:

  • Class archives: Display posts from the present class.
  • Tag archives: Display posts from the present tag.
  • Creator archives: Display posts from the present writer.
  • Seek effects: Show ends up in a customized Loop format.
  • Product archives: Construct WooCommerce archive layouts with customized product playing cards.
  • Customized put up kind archives: Show initiatives, occasions, crew individuals, or different customized content material sorts.

In Part 8 of the Divi 5 Mastery Direction, we constructed Theme Builder templates. The Loop Builder extends that workflow by way of providing you with complete keep watch over over the repeated archive merchandise design.

How Theme Builder Loops Paintings

You’ll be able to permit the Loop Builder on a Row, Column, Staff, or supported module inside of a Theme Builder template, simply as you probably did at the Weblog web page.

When development archive templates, set the Question Sort to Posts for Present Web page. This we could the Loop show the proper content material for the archive context, comparable to the present class, tag, writer, or seek effects web page.

Set Query Type to Posts for Current Page in Divi 5

You’ll be able to use Flexbox or CSS Grid to keep watch over the Loop format. For instance, use Grid for a card-based archive format and Flexbox for stacked or horizontal checklist layouts.

Use Grid settings for a Loop layout in Divi 5

The result’s a customized dynamic archive format that remains in line with the remainder of your website.

Very best Practices And Guidelines

Now that you know the way to construct a Loop, listed here are a couple of pointers to stay your layouts constant, versatile, and more straightforward to deal with.

Get started With Design Variables And Presets

Construct the repeated merchandise together with your Design Variables and Presets earlier than enabling or finalizing the Loop. That method, each repeated merchandise inherits the similar typography, spacing, colours, borders, and button types as the remainder of the website.

Should you plan to reuse the format, put it aside to the Divi Library so you’ll be able to get started long term loops from the similar design.

See also  Why Use WordPress? Discover 5 Compelling Reasons

Take a look at Responsiveness Early

Flexbox and Grid provide you with a robust responsive basis, however dynamic content material can range from put up to put up. Take a look at your Loop on Pill and Telephone breakpoints with actual titles, excerpts, classes, and featured pictures.

Use the Responsive Editor to fine-tune spacing, typography, symbol conduct, and column construction the place wanted.

Stay Accessibility In Thoughts

Use a transparent heading hierarchy for put up titles, comparable to H2 or H3 relying at the web page construction. Ensure featured pictures have significant alt textual content in WordPress. Additionally ascertain that hyperlinks and buttons are simple to get entry to by way of keyboard.

Those main points toughen usability and lend a hand the format paintings higher for extra guests.

Construct For Scalability

The similar tactics used for this Weblog web page can chronic portfolios, store product grids, crew directories, match listings, menus, and customized put up kind archives.

Whilst you construct with reusable types and a transparent format construction, long term loops grow to be a lot quicker to create.

Obtain And Set up The Information

To make issues more straightforward, we’ve created a Weblog Loops In Divi 5.json record containing the Weblog web page format from this instructional. To make use of it, fill out the shape underneath, save the record on your pc, and create a brand new web page.

Within the Builder Bar, click on the Builder Settings icon and permit the Export & Import icon within the Best Bar.

Make a selection the Export & Import icon, click on the Import tab, and find the JSON record for your pc. As soon as the record is loaded, click on Import Format so as to add the format to the web page.

Import a Divi 5 layout JSON file

What’s Coming Subsequent

You presently have a customized Weblog web page powered by way of the Loop Builder. You designed the repeated merchandise, hooked up dynamic content material, added pagination, and changed the format for smaller monitors.

The similar method can be utilized for different content material sorts, comparable to a portfolio grid, masonry blog, product archive, match checklist, or dynamic menu.

In Phase 15 of the Divi 5 Mastery Direction, we’ll transfer into complex power-user workflows, together with optimization tactics, time-saving shortcuts, and smarter techniques to construct quicker in Divi 5. After that, Phase 16 will focal point on ultimate polish earlier than release.

Till then, we’d love your comments. Go away us a remark underneath or achieve out on our social media channels.

The put up Part 14: Mastering The Divi 5 Loop Builder seemed first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!