Phase 14: Mastering The Divi 5 Loop Builder

by | May 28, 2026 | Etcetera | 0 comments

Welcome once more to the Divi 5 Mastery Trail. In Section 13: Growing Interactive Off-Canvas Portions (Popups & Additional), we used Canvases and Interactions so that you can upload interactive UI to our coworking internet web page. Now, it’s time to build with one among Divi 5’s most tricky dynamic content material subject matter equipment: the Loop Builder.

In this post, we’ll skip the usual Blog module and assemble a custom designed Blog internet web page using the Loop Builder, dynamic content material subject matter, Flexbox, and the Pagination module. By the use of the end, you’ll have a responsive Blog internet web page with featured photos, post titles, excerpts, metadata, Be told Additional buttons, and pagination.

The overall construction will also use the an identical Design Variables and Presets we created in Phase 3 and Phase 4, so it stays hooked up to the global design tool.

Let’s get started.

What The Divi 5 Loop Builder Does

If you happen to’ve worked with WordPress for any length of time, you’ve maximum for sure heard of the Loop. It’s the WordPress mechanism that retrieves and presentations content material subject matter very similar to posts, pages, products, categories, authors, or custom designed post sorts.

In earlier Divi workflows, the Blog module was the fastest strategy to output a post feed. It nevertheless works neatly for simple blog layouts. Alternatively, it moreover comes with a collection development, so it’s no longer at all times final when you want whole keep an eye on over the repeated products design.

Divi 5’s Loop Builder provides you with that keep an eye on visually. As a substitute of styling a predefined Blog module construction, you’ll be capable to design the repeated products yourself with Divi portions, then connect each and every part of the construction to dynamic content material subject matter.

Why The Loop Builder Problems

The Loop Builder comes in handy when you want a dynamic construction that still feels completely custom designed. You design one products, configure the query, and Divi repeats that design for each and every matching products.

Listed here are the principle advantages:

  • Custom designed construction keep an eye on: Assemble the repeated products with Divi portions instead of being limited to one predefined module construction.
  • Dynamic content material subject matter fields: Pull in content material subject matter very similar to featured photos, post titles, words, authors, submit dates, excerpts, and links.
  • Flexible query alternatives: Display posts, products, words, consumers, menus, custom designed post sorts, and supported custom designed field data depending in your setup.
  • Design tool consistency: Use the an identical Design Variables and Presets from earlier parts of the trail so each and every loop products fits the rest of the site.
  • Theme Builder support: Use loops inside templates for archives, search results, product archives, and other dynamic views.

Get in a position Your Internet web page For The Loop Builder

Quicker than we start construction, you will have to undoubtedly have enough content material subject matter to test the construction. A few minutes of preparation will make the Loop more straightforward to preview, paginate, and refine.

Create Trend Blog Posts

Create a minimum of 6 to 8 revealed blog posts. Each post should include a featured image, a reputation, an excerpt, and any similar categories or tags you want to turn.

In case you do not want content material subject matter however, use a test-content plugin very similar to FakerPress to generate placeholder posts for the instructional.

Generate sample blog posts with FakerPress

Having a minimum of 6 posts supplies the Loop Builder enough content material subject matter to turn and lets you read about pagination and query changes later.

Create A Blog Internet web page

Create a brand spanking new internet web page named Blog. Put up the internet web page and open it throughout the Visual Builder.

Add a Heading module and any introductory content material subject matter you want above the loop. This provides the internet web page a clear identify forward of the dynamic post report begins.

See also  20 Dropbox Pointers and Methods for 2024 (Up to date)

Create a Blog page layout in Divi 5

Assemble A Blog Construction With The Loop Builder

In this phase, we’ll create a custom designed Blog internet web page that routinely presentations posts in a repeated construction. The workflow has 4 number one parts.

  • Assemble one post-card construction.
  • Turn that construction proper right into a Loop element.
  • Connect each and every module to dynamic content material subject matter.
  • Add pagination and responsive adjustments.

By the use of the end of this tutorial, you’ll have a realistic blog post Loop for the coworking internet web page.

Step 1: Create The Row Building

Quicker than enabling the Loop, assemble the repeated products construction. Get began thru together with a new Section to the Blog internet web page. Within that Section, add a two-column Row.

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

Open the Row settings. Inside the Design tab, magnify the Construction risk personnel. Set each and every Horizontal Hollow and Vertical Hollow to 0px.

Set Row gap values in Divi 5

Next, follow the Rounded – Commonplace preset to the Row’s Border risk personnel.

Apply a border preset in Divi 5

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

Edit the first Column in Divi 5

Inside the Design tab, magnify the Sizing risk personnel and set Column Class to 2/5.

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

Switch to the second Column. Inside the Design tab, magnify the Construction risk personnel. Practice the Spacing – XSmall variable to each and every the Horizontal Hollow and Vertical Hollow fields.

Apply gap variables to a Column in Divi 5

However in the second Column, magnify the Sizing risk personnel and set Column Class to 3/5.

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

Next, magnify the Spacing risk personnel and follow the Spacing – Medium variable to all 4 Padding fields.

Apply padding variables to a Column in Divi 5

In the end, go to the second Column’s Content material subject matter tab. Magnify the Background risk personnel and follow the Background – Gentle Gray color variable to the Background Color field.

Apply a background color variable to a Column in Divi 5

Step 2: Design The Repeated Post Products

With the Row development ready, design the post products that the Loop Builder will repeat. Inside the first Column, add an Image module.

Add an Image module in Divi 5

Inside the second Column, add a Text module. This will more and more display the post words. Inside the module’s Content material subject matter tab, follow the White color variable to the Background Color field.

Set the Text module background color in Divi 5

Switch to the Design tab, magnify the Text risk personnel, and follow the Body Small variable to the Text Size field.

Apply a text size variable in Divi 5

Magnify the Sizing risk personnel and set Alignment to Get began.

Set module alignment to Start in Divi 5

Inside the Spacing risk personnel, follow the Spacing – XSmall variable to the left and correct Padding fields.

Apply padding to a Text module in Divi 5

Beneath the Text module, add a Heading module and follow the Heading 3 preset.

Apply a Heading preset in Divi 5

Next, add a Module Staff beneath the Heading. All the way through the Personnel, add two Text modules. The ones will display the writer and submit date.

Add a Module Group in Divi 5

Open the Personnel settings. Inside the Design tab, magnify the Construction risk personnel.

Open Group layout settings in Divi 5

Then, magnify the Sizing risk personnel and set Alignment to Get began.

Set Group alignment in Divi 5

Inside the first Text module all over the Personnel, stack two presets: Dark Text and Small.

Stack Text presets in Divi 5

In that exact same Text module, go to the Design tab and magnify the Text risk personnel. Inside the Paragraph and Link tabs, follow the Text – Dark Transparent variable. Repeat the an identical color settings for the second Text module all over the Personnel.

Apply a transparent text color variable in Divi 5

Beneath the Personnel, add another Text module and follow the Dark Text preset. This module will display the post excerpt.

Apply the Dark Text preset in Divi 5

In the end, add a Button module at the bottom of the second Column and follow the Text – Primary preset.

Apply a Button preset in Divi 5

Step 3: Allow The Loop

Now, turn the Row proper right into a dynamic Loop. Make a choice the Row, go to the Content material subject matter tab, magnify the Loop risk personnel, and allow Loop Phase.

Enable Loop Element in Divi 5

Next, configure the query. Set Order to Ascending. Inside the Posts Consistent with Internet web page field, enter 6.

If the loop is ordered thru date, this presentations six posts in oldest-first order. You’ll be capable to change the order later if you want to have the newest posts to seem first.

Set Loop order and posts per page in Divi 5

Step 4: Practice Dynamic Content material subject matter Fields

With the Loop enabled, connect each and every module to the proper dynamic content material subject matter field.

Make a choice the Image module throughout the first Column. Inside the Content material subject matter tab, hover over the Image field to show the Insert Dynamic Content material subject matter icon. Then, choose Loop Featured Image.

Next, choose the principle Text module in the second Column and assign Loop Post Words to the Body field.

Assign Loop Post Terms in Divi 5

For the Heading module, assign Loop Post Identify to the Heading field.

Assign Loop Post Title in Divi 5

Inside the Personnel, choose the principle Text module. Practice Loop Creator dynamic content material subject matter, and enter thru throughout the Quicker than field so the output reads like an writer byline.

Assign Loop Author dynamic content in Divi 5

For the second Text module, choose Loop Put up Date. Inside the Custom designed Date Construction field, enter M, Y. This presentations the post’s abbreviated month and three hundred and sixty five days.

See also  Tips on how to Settle for SEPA Bills in WordPress (2 Simple Tactics)

Assign Loop Publish Date in Divi 5

For the Text module beneath the Personnel, choose Loop Excerpt.

Assign Loop Excerpt in Divi 5

In the end, set the Button Text to Be told Additional and assign Loop Link to the Button Link URL field.

Scroll throughout the construction to ensure that the dynamic content material subject matter moderately so much as it should be and that six posts are displayed.

Step 5: Add Pagination

Now that the Loop presentations posts dynamically, give visitors a strategy to switch via additional posts. Add a brand spanking new single-column Row beneath the Loop Row, then add the Pagination module inside it.

Inside the Pagination module’s Content material subject matter tab, ensure the proper Loop Row is selected since the Function Loop.

Select the Target Loop for the Pagination module in Divi 5

Preview the internet web page and read about the pagination on the front end.

Step 6: Make The Loop Responsive

The Flexbox-based construction supplies the Blog internet web page a powerful responsive position to start. However, it’s price reviewing the construction all over Tablet and Phone breakpoints.

Check out typography, spacing, image size, button placement, and the way in which the two Columns stack on smaller screens. Use Customizable Responsive Breakpoints, Building Templates, and the Responsive Editor for any targeted adjustments.

Get began thru enabling any longer breakpoints you want to test. Click on at the ellipsis menu to open the Breakpoints modal, where you’ll be capable to allow or disable Divi’s available breakpoints.

Cycle via each and every full of life breakpoint and seek for spacing, alignment, and readability issues.

Practice A Building Template

On lower breakpoints, simplify the Row development so the post content material subject matter stacks cleanly.

Switch to the Tablet breakpoint. Make a choice the principle Row that incorporates the Loop. Transfer to the Content material subject matter tab, magnify the Portions risk personnel, and click on at the Practice Building Template button.

Apply a Structure Template in Divi 5

Choose a single-column development. This converts the 2/5 + 3/5 desktop construction proper right into a stacked construction on Tablet and smaller screens.

Use The Responsive Editor

For targeted changes all over breakpoints, use the Responsive Editor on any appropriate setting.

For example, choose the Section beneath the Loop. Inside the Design tab, magnify the Spacing risk personnel and hover on the subject of the Padding fields to show the Edit Responsive Values icon.

Open Edit Responsive Values in Divi 5

Click on at the icon to open the Responsive Editor panel. From there, regulate padding values for the breakpoints that need changes.

Responsive Editor panel in Divi 5

Use Loops In The Theme Builder

The Loop Builder moreover works all over the Theme Builder. As a substitute of rebuilding the an identical construction for each and every archive, you’ll be capable to create a template once and let it pull the proper content material subject matter for the internet web page being regarded as.

This comes in handy for:

  • Elegance archives: Show posts from the existing elegance.
  • Tag archives: Show posts from the existing tag.
  • Creator archives: Show posts from the existing writer.
  • Search results: Display results in a custom designed Loop construction.
  • Product archives: Assemble WooCommerce archive layouts with custom designed product enjoying playing cards.
  • Custom designed post type archives: Display duties, events, team of workers people, or other custom designed content material subject matter sorts.

In Phase 8 of the Divi 5 Mastery Trail, we built Theme Builder templates. The Loop Builder extends that workflow thru providing you with whole keep an eye on over the repeated archive products design.

How Theme Builder Loops Art work

You’ll be capable to allow the Loop Builder on a Row, Column, Personnel, or supported module inside a Theme Builder template, merely as you most likely did on the Blog internet web page.

When construction archive templates, set the Query Sort to Posts for Provide Internet web page. This lets the Loop display the proper content material subject matter for the archive context, very similar to the existing elegance, tag, writer, or search results internet web page.

Set Query Type to Posts for Current Page in Divi 5

You’ll be capable to use Flexbox or CSS Grid to keep an eye on the Loop construction. For example, use Grid for a card-based archive construction and Flexbox for stacked or horizontal report layouts.

Use Grid settings for a Loop layout in Divi 5

The outcome’s a custom designed dynamic archive construction that is still in keeping with the rest of your site.

Highest Practices And Tips

Now that you know the way to build a Loop, listed below are a few tricks to keep your layouts consistent, flexible, and more straightforward to handle.

Get began With Design Variables And Presets

Assemble the repeated products along side your Design Variables and Presets forward of enabling or finalizing the Loop. That method, each and every repeated products inherits the an identical typography, spacing, colors, borders, and button types as the rest of the site.

If you happen to plan to reuse the construction, save it to the Divi Library so that you’ll be capable to get began longer term loops from the an identical design.

See also  🎁 Unpacking Divi Black Friday Bundles: $1,000+ In Financial savings!

Check out Responsiveness Early

Flexbox and Grid come up with a powerful responsive foundation, then again dynamic content material subject matter can vary from put as much as post. Check out your Loop on Tablet and Phone breakpoints with precise titles, excerpts, categories, and featured photos.

Use the Responsive Editor to fine-tune spacing, typography, image conduct, and column development where sought after.

Keep Accessibility In Ideas

Use a clear heading hierarchy for post titles, very similar to H2 or H3 depending on the internet web page development. Make certain featured photos have important alt text in WordPress. Moreover confirm that links and buttons are easy to get right to use thru keyboard.

The ones details enhance usability and lend a hand the construction art work upper for additonal visitors.

Assemble For Scalability

The an identical techniques used for this Blog internet web page can persistent portfolios, retailer product grids, team of workers directories, fit listings, menus, and custom designed post type archives.

When you assemble with reusable types and a clear construction development, longer term loops turn out to be so much sooner to create.

Download And Arrange The Knowledge

To make problems more straightforward, we’ve created a Blog Loops In Divi 5.json report containing the Blog internet web page construction from this tutorial. To use it, fill out the form beneath, save the report in your computer, and create a brand spanking new internet web page.

Inside the Builder Bar, click on at the Builder Settings icon and allow the Export & Import icon throughout the Perfect Bar.

Make a choice the Export & Import icon, click on at the Import tab, and in finding the JSON report in your computer. As quickly because the report is loaded, click on on Import Construction so that you can upload the construction to the internet web page.

Import a Divi 5 layout JSON file

What’s Coming Next

You at the moment have a custom designed Blog internet web page powered in the course of the Loop Builder. You designed the repeated products, hooked up dynamic content material subject matter, added pagination, and altered the construction for smaller screens.

The an identical approach can be used for various content material subject matter sorts, very similar to a portfolio grid, masonry weblog, product archive, fit checklist, or dynamic menu.

In Section 15 of the Divi 5 Mastery Trail, we’ll switch into complicated power-user workflows, along with optimization techniques, time-saving shortcuts, and smarter ways to build sooner in Divi 5. After that, Section 16 will focal point on final polish forward of liberate.

Until then, we’d love your feedback. Leave us a commentary beneath or achieve out on our social media channels.

The post Phase 14: Mastering The Divi 5 Loop Builder appeared first on Chic Issues Weblog.

WordPress Web Design

[ continue ]

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!