How To Construct A Horizontal Weblog Loop In Divi 5

by | May 16, 2026 | Etcetera | 0 comments

WordPress can show posts on a blog internet web page routinely, on the other hand the default output once in a while offers you entire keep an eye on over the actual card development. The image position, meta structure, excerpt placement, and skim further link all practice a preset building except for you get began customizing the theme or working around the module.

The Loop Builder in Divi 5 takes a novel approach. You design one post card with usual Divi portions, connect each part of that card to reside post wisdom, and Divi repeats it routinely for each products to your query.

In this educational, we’ll assemble a horizontal blog loop with one post card consistent with row. Every card could have a featured image on the left, post content material subject material on the suitable, dynamic establish, submit date, excerpt, and a similar arrow, plus pagination so visitors can switch via the rest of your posts.

Why Assemble A Horizontal Blog Loop With The Loop Builder?

The Blog Module comes in handy when you want a blog feed briefly. For a variety of web pages, that is enough. However if you want to need to make a decision exactly how each post card is structured, where the image sits, how the meta line reads, how so much space the excerpt gets, or what the be told further part turns out like, a collection blog structure can start to in point of fact really feel proscribing.

The Loop Builder is built for that situation. You choose the part that should repeat, turn on the loop selection, define the query, and then assemble the card inside of that looped part. Divi handles the repetition and swaps in the correct post wisdom for each end result.

No longer anything else inside the card has to use a preset blog module development. The image, establish, date, excerpt, and arrow link are all not unusual Divi portions, which means that you’ll style them the an identical way it’s possible you’ll style the rest of your internet web page.

This is specifically useful for horizontal blog layouts. Instead of showing two or 3 compact enjoying playing cards consistent with row, each post gets its non-public entire row inside the content material subject material container. The outcome feels further editorial and offers each post enough space to stand on its own.

Be informed The whole lot About Divi 5’s Loop Builder

What We’re Building

Forward of we get into the steps, correct right here’s a quick take a look on the finished structure.

Horizontal blog loop layout built with Divi 5

Every post turns out as a horizontal card with the featured image on the left and the post content material subject material on the suitable. The content material subject material side accommodates the post establish, submit date, excerpt, and a right-pointing arrow that links to the full post. Taking part in playing cards stack vertically down the internet web page, and a Next → pagination link turns out at the bottom when there are further posts to show.

Forward of you assemble the structure, make sure your posts have featured images. Information excerpts are also helpful if you want to have tighter keep an eye on over the preview text, even if Divi can nevertheless pull an excerpt routinely.

Step 1: Set Up The Internet web page Development

Get began thru opening the internet web page where you want your horizontal blog loop to reside. If you happen to’re working from a blank internet web page, click on on Use Visual Builder to unlock the editor.

See also  WordPress Theme Construction Instructional For Inexperienced persons: Need To Construct Your…

Use Divi Builder button

Click on at the blue + icon to insert a brand spanking new phase and select Not unusual Segment. A row is added routinely inside of it.

Blue plus button in Divi Builder

Open the Segment settings thru clicking the phase gear icon. Transfer to Design > Spacing and set the absolute best and bottom padding to 60px. This gives the structure breathing room above and underneath the blog feed.

Section top and bottom padding settings

Throughout the phase, add a single-column row. This row is only for the internet web page heading, so one column is all we wish.

Single column row in Divi Builder

Throughout the row, add a Heading module and kind Blog since the heading text.

Open the Heading module settings and transfer to Design > Text. Set the Font Dimension to spherical 50px, select a font weight that matches your site’s heading style, and keep the heading left-aligned.

Add enough bottom spacing after the heading so the principle blog card does not take a seat down too with reference to it. As quickly because the heading turns out suitable, switch at once to the row that can change into the actual loop.

Step 2: Allow Loop On The Blog Row

Beneath the heading row, insert a brand spanking new 2-column row. This row will change into the repeated blog card. The left column will hold the featured image, and the correct column will hold the establish, submit date, excerpt, and link.

Two column row in Divi Builder

Open the Row settings and set the row’s Admin Label to Blog Nav. This label will make the loop more uncomplicated to identify later when we connect the Pagination module.

With the an identical row settings nevertheless open, transfer to Content material subject material > Loop and toggle Loop Part on. Once enabled, this row becomes the repeating container. The whole thing built inside of it’ll repeat for each post that matches the query.

Loop Element enabled in Divi 5

Next, prepare the query. Set Query Sort to Submit Sort and Submit Sort to Posts. Set Posts Consistent with Internet web page to 3, Order Thru to Date, and Order to Descending so the newest posts appear first.

If you happen to don’t need sticky posts to override the normal date order, allow Put out of your mind about Sticky Posts as well.

The row will multiply inside the Visual Builder to reflect the choice of posts you put. The columns are nevertheless empty, on the other hand the loop is already energetic. Next, we’ll assemble the card development inside the looped row.

Step 3: Assemble The Blog Card Development

With the loop running, assemble the card inside the first looped row. We’ll get began with the image column, then add the content material subject material portions on the suitable.

Throughout the left column, click on at the + icon and add a Divider module. We’ll use this Divider as a background image container for the featured image.

Divider module in Divi Builder

In the correct column, click on at the + icon and add a Heading module. This will an increasing number of change into the dynamic post establish when we connect it to loop wisdom.

Add Heading module in Divi Builder

Beneath the Heading module, add a Group module. This Group will hold the meta line.

Open the Group settings, transfer to Design > Construction, and set the route to Horizontal. Throughout the Group, add a Text module and kind Printed on since the static label. Then add a second Text module next to it. This second Text module will pull the dynamic submit date in Step 5.

While you desire an author-based meta line, add every other Text module for the author and fasten it to the loop author field previous to the date.

Beneath the Group, add every other Text module for the post excerpt. This gives each card a temporary preview of the post previous to visitors click on on via.

Text module in Divi Builder

Finally, add an Icon module at the bottom of the correct column. Search for the arrow icon and select it. This will an increasing number of change into the be told further link for each post.

Accessibility practice: this educational uses the featured image as a background image so the card can keep a clean horizontal shape. If the image needs to carry vital that suggests, consider the use of an Image module hooked up to the featured image instead.

See also  How To Create A Customized WordPress Kid Theme / Free up…

Step 4: Style The Blog Card

With the development in place, style the card from the out of doors in.

Open the Row settings and transfer to Design > Border. Add a 1px cast border and set the color to a steady gray paying homage to #E0E0E0. This gives each card a cultured edge without making the structure in point of fact really feel heavy.

Row border settings in Divi Builder

Nevertheless inside the Row settings, transfer to Design > Construction and set the Horizontal Hollow to 0. This helps to keep the image column and content material subject material column flush in opposition to each other.

Horizontal gap set to 0 in Divi Builder

Open the correct column settings and transfer to Design > Background. Add a at ease off-white color paying homage to #FAFAFA. This gives the text space a clean editorial in point of fact really feel and separates it from the image column.

Transfer to Design > Spacing and add 30px padding on all sides so the content material subject material does not take a seat down in opposition to the card edge.

Column padding set to 30px in Divi Builder

Transfer to Design > Construction and set the Horizontal Hollow and Vertical Hollow to 10px. This helps to keep the spacing between the elements inside the column consistent.

Horizontal and vertical gaps in Divi Builder

Open the Heading module and elegance the post establish. A font size spherical 30px on desktop works well for this type of horizontal card, on the other hand keep an eye on it to test your site. Keep the street most sensible tight enough that longer titles nevertheless in point of fact really feel controlled.

Open the Group module settings and transfer to Design > Construction. Set the Horizontal Hollow to a small value so the label and date take a seat down on the an identical line without drifting apart. Then open each Text module inside the Group, transfer to Design > Text, set the Font Weight to Semi Bold, and make the font fairly smaller than the establish.

Style the excerpt Text module so it reads clearly beneath the meta line. Keep the font size with reference to your body text size and use a at ease line most sensible.

For the Icon module, transfer to Design > Icon and set the color to test your site’s accent or link color. Set the size to spherical 30px, then align it to the correct the use of Design > Alignment.

Icon size settings in Divi Builder

Step 5: Connect Dynamic Content material subject material

The card is built and styled. Now trade the placeholder content material subject material with reside post wisdom from the loop.

Open the Divider module inside the left column. Transfer to Content material subject material > Visibility and turn off Show Divider. This hides the divider line so perfect the background image displays.

Show Divider setting turned off in Divi Builder

Transfer to Content material subject material > Background and switch the background type to Image. Click on at the dynamic content material subject material icon on the image field and select Loop Featured Image. Every repeated card will now pull the featured image from its non-public post.

If the background image does not fill the image space, transfer to Design > Sizing and allow Expand to Fill. That is serving to the image container stretch with the card most sensible.

Grow to Fill setting in Divi 5

Open the Heading module and transfer to Content material subject material > Text > Heading. Click on at the dynamic content material subject material icon and select Loop Submit Determine. The heading will now display the correct establish for each post.

Loop Post Title dynamic content option in Divi 5

Nevertheless inside the Heading module, transfer to Content material subject material > Link. Click on at the dynamic content material subject material icon on the URL field and select Loop Submit URL. This makes the establish link to the correct post.

Open the second Text module inside the Group, the one next to the Printed on label. Transfer to Content material subject material > Text, click on at the dynamic content material subject material icon, and select Loop Submit Date.

Open the excerpt Text module and transfer to Content material subject material > Text. Click on at the dynamic content material subject material icon and select Loop Excerpt. If the excerpt feels too long for the card, keep an eye on the dynamic content material subject material possible choices so the preview stays fast and balanced.

See also  Consistent Touch vs Mailchimp: Which E-mail Advertising and marketing Software to Use in 2021?

Loop Excerpt dynamic content option in Divi 5

Open the Icon module and transfer to Content material subject material > Link. Click on at the dynamic content material subject material icon on the URL field and select Loop Submit URL. The arrow now links to the correct post for each card.

Preview the internet web page. Every card must now show its non-public featured image, establish, submit date, and excerpt while protective the an identical horizontal structure.

Step 6: Add Pagination

As quickly because the loop is pulling reside post wisdom, add pagination so visitors can switch via the rest of your posts. This problems because the query is ready to show perfect 3 posts consistent with internet web page.

Within the an identical phase, add a brand spanking new single-column row underneath the loop row. Keep this row out of doors the looped row. Search for the Pagination module and add it inside the row.

Add Pagination module in Divi 5

Open the Pagination module settings and transfer to Content material subject material > Function. Set the Function Loop to Blog Nav. This connects the Pagination module to the looped row we classified earlier.

Target Loop set to Blog Nav in Divi 5 Pagination module

You’ll moreover customize the pagination labels. For this structure, a simple Previous and Next → style keeps the navigation minimal.

Save the internet web page and preview it. If your site has further posts than the Posts Consistent with Internet web page value, the Pagination module will appear and switch right through the loop results.

Step 7: Optimize The Construction For Responsive Screens

The horizontal card works absolute best on desktop, on the other hand smaller presentations need a rapid responsive transfer. Switch to tablet and cellular view the use of the responsive toolbar and check out how the enjoying playing cards stack.

On tablet and cellular, let the two columns stack so the featured image sits above the content material subject material. Then scale back the establish size, tighten the excerpt if sought after, and check out the Divider most sensible so the image does not collapse or absorb quite a lot of space.

A very good position to start out is to stick the desktop establish spherical 30px, scale back it on tablet, and scale back it another time on cellular. For the image space, use a smaller minimum most sensible on cellular so each card remains easy to scroll via.

As quickly because the enjoying playing cards be told well all through desktop, tablet, and cellular, save the internet web page and preview the finished structure.

Assemble A Horizontal Blog Loop With Divi 5’s Loop Builder At the moment!

You merely built a custom designed horizontal blog loop in Divi 5 without editing theme files or writing custom designed code. Instead of forcing your posts correct right into a preset Blog Module structure, you designed the card development yourself, hooked up each part to loop wisdom, and let Divi repeat the card routinely.

That’s the facility of the Loop Builder. It offers you keep an eye on over the structure while protective the content material subject material dynamic. You’ll use the an identical approach for various post types too, along with duties, products, events, belongings, or personnel contributors. The development stays the an identical: design one products, connect the dynamic fields, define the query, and let Divi handle the loop.

The post How To Construct A Horizontal Weblog Loop In Divi 5 seemed first on Chic Subject matters 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!