How to move the Divi blog module items with custom ordering using CSS.

Dec 7, 2022 | Divi Tips | 0 comments

Steps to move the Divi blog module items with custom ordering using CSS.

Step 1: Add the class customBlogOrder to your blog module.

Step 2: Update the 4 “order” values in the CSS to your preferred order.

Step 3: Add the custom CSS to the Divi theme options / Custom CSS area.

Scroll down to see what it looks like using a Divi blog module with the below code where the meta info is moved to the second spot instead of the default third spot.

/* moving info on blog module BEGIN */
/*make the parts of the blog post flexible*/
.customBlogOrder .et_pb_post {
	display: flex;
	flex-direction: column;
}
/*blog post featured image*/
.customBlogOrder .et_pb_post .et_pb_image_container, .customBlogOrder .et_pb_post .entry-featured-image-url {
	order: 1;
}
/*blog post title*/
.customBlogOrder .et_pb_post .entry-title {
	order: 3;
}
/*blog post meta*/
.customBlogOrder .et_pb_post .post-meta {
	order: 2;
}
/*blog post excerpt and button*/
.customBlogOrder .et_pb_post .post-content {
	order: 4;
}
/*remove negative margin on blog image*/
.customBlogOrder .et_pb_blog_grid .et_pb_image_container {
	margin: 0!important;
}
/*adjust margin below blog post featured image*/
.customBlogOrder .et_pb_post .entry-featured-image-url {
	margin-bottom: 10px;
}
/* moving info on blog module END */

Here’s what it looks like:

Need help with this?
Hire me for a consultation and I'll walk you thru the process.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

5 star reviews
"WOW! Money WELL spent. Joseph was incredibly knowledgeable in helping me make some final tweeks to my Divi website. He was very caring and went above and beyond. Will 100% use him for any future Divi website needs."
Claire - CMMC

5 star reviews
"You really get what you pay for with Joe. He does more than simply build a website, he sets up websites for success. Functional, clean, professional designs and he keeps up/implements the latest plugins and technology. Thank you Joe. I will continue to refer you work."
Mark Winger

5 star reviews
"The best WordPress guy I’ve worked with on WordPress, hands-down (and I’ve worked with dozens). Remarkably good with theme customizations with a quick turn. Kept it on budget as well. A rarity with hourly contracts."
Nate Wright

5 star reviews
"Thanks for your prompt reply. You’re always so comprehensive. If we could write another review just for your communication skills, then we would."
Alex N

More Tips

Ask a Question

"*" indicates required fields