How to Design a Scrollable Recent Posts Widget Area in Divi

Last Updated on September 16, 2022 by 11 Comments

How to Design a Scrollable Recent Posts Widget Area in Divi
Blog / Divi Resources / How to Design a Scrollable Recent Posts Widget Area in Divi
Play Button

Divi and its sidebar module is an extremely useful tool for integrating custom widget areas into your design. This allows you to display any WordPress widget inside a Divi layout. In this tutorial, I’m going to show you how to create a scrollable recent posts widget area in Divi. I’ll be designing a “From our Blog” section with the recent posts widget area to the right side of a blog module. This will be perfect for showcasing a few of your most recent blog posts on a homepage or landing page.

Let’s get started!

Sneak Peek

Here is a little sneak peek of the design we will build in this tutorial.

scrollable recent posts

scrollable recent posts

Download the Scrollable Recent Posts Layout for FREE

To lay your hands on the scrollable recent posts layout design from this tutorial, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

To import the layout to your page, simply extract the zip file and drag the json file into the Divi Builder.

Let’s get to the tutorial shall we?

Subscribe To Our Youtube Channel

Creating the Recent Posts Widget Area

Since we are going to be adding a recent posts widget to our Divi layout, the first thing we need to do is create a new widget area (with the recent posts widget) to use with Divi’s Sidebar module.

To create the recent posts widget area, navigate to Appearance > Widgets. Then create a new widget area by giving the widget area a name (call it “recent posts” if you want) and clicking the Create button. Refresh the page to see the new widget area available.

scrollable recent posts

Open the toggle of the Recent Posts Widget that comes with WordPress over on the left of the page. Then choose the “recent posts” widget area from the list and click Add Widget to add the widget to the widget area.

scrollable recent posts

Then open the recent posts widget area and update the Recent Posts widget with a Title. Set the number of posts to show to a large number so that we will have enough posts to scroll through when our design is complete.

scrollable recent posts

Now that we have our widget area in place, we can start on our Divi design.

Creating the “From Our Blog” Section with Scrollable Recent Posts Widget Area

Designing the Heading Section

Create a new regular section with a one column row.

scrollable recent posts

Before adding a module, update the section with the following:

Background Color: #333333
Custom Padding: 0px bottom

scrollable recent posts

Then take out the bottom padding of the row as well by updating the row settings:

Custom Padding: 0px bottom

Then add a text module to the row.

scrollable recent posts

Then update the following Text settings:

For the content, add the following h2 heading html:

<h2>From our Blog</h2>

scrollable recent posts

Then update the following text settings:

Heading 2 Font: Roboto
Heading 2 Font Style: TT
Heading 2 Text Color: #ffffff
Heading 2 Text Size: 40px
Heading 2 Letter Spacing: 2px

scrollable recent posts

That takes care of the heading for our layout. Now it’s time to create the rest of the layout using a specialty section.

Creating the Specialty Section

Using a separate specialty section for the rest of the layout will allow us to have a dedicated sidebar to the right for our scrollable widget area. Plus, it will allow us to size and style our rows on the left side of the section separately from the sidebar area.

Go ahead and add a specialty section with a right-sidebar column layout as follows:

scrollable recent posts

Then add a one column row to the section.

scrollable recent posts

Before adding a module, let’s update our section and row settings.

Customizing the Section settings

Open the settings for the specialty section and update the following:

Background Color: #333333
Gutter Width: 2
Custom Padding: 0px top
Column 2 Custom Padding: 0px top, 0px bottom

scrollable recent posts

Customize the Row Settings

Next open the row settings and update the following:

Height: 640px
Top Border Width: 8px
Top Border Color: #444444
Bottom Border Width: 8px
Bottom Border Color: #444444

scrollable recent posts

The custom 640px height is given to match the height of the scrollable recent posts widget area we will be adding to the sidebar of our specialty section. this will make sure the two will have the same height for a more aesthetically pleasing design.

Adding the Blog Module

In the one-column row on the left, add a blog module.

scrollable recent posts

Then update the blog module settings as follows:

Posts Number: 2

scrollable recent posts

Layout: Grid
Title Font: Roboto
Meta Font: Roboto
Meta Font Weight: Light
Meta Font Style: TT
Pagination Font: Roboto
Pagination Font Style: TT
Pagination Text Color: #ffffff
Pagination Text Size: 18px
Pagination Letter Spacing: 2px

scrollable recent posts

Adding the Scrollable Recent Posts Widget Area

Finally, it’s time to add the scrollable recent posts to our layout. To do this, add a sidebar module to the sidebar area of the specialty section on the right.

scrollable recent posts

Then select the “recent posts” widget area you created earlier by selecting it from the Widget Area dropdown under the content tab.

scrollable recent posts

Then update the Title and Body text design as follows:

Title Font: Roboto
Title Font Style: TT
Title Text Color: #ffffff
Title Letter Spacing: 2px
Body Font: Roboto
Body Font Style: Underline

scrollable recent posts

Next, hide the border separator as follows:

Show Border Separator: NO

scrollable recent posts

Then give the sidebar module a max height and custom padding as follows:

Max Height: 640px
Custom Padding: 30px top, 30px bottom, 5% right

The 640px max height matches the 640px custom height given to the adjacent row.

scrollable recent posts

Now that we have given the sidebar module a max height of 640px, we need to set the vertical overflow to scroll in order to get our scrollable functionality. To do this, go to the Advanced tab and update the following:

Vertical Overflow: Scroll

scrollable recent posts

Final Result

That’s it! Now let’s check out the final result.

scrollable recent posts

scrollable recent posts

scrollable recent posts

scrollable recent posts

Bonus Option: Adding Custom CSS to Design Scrollbar (not supported by all browsers)

Styling a scroll bar in WordPress is kind of a pain if you want cross browser support. So in most cases, you will want to leave it to the browser’s default styles and call it a day. But if you do want to customize the scroll bar to match the design of your page, you can add some custom CSS. Unfortunately, the browser support is limited to browsers that support ::webkit prefixed CSS properties (basically just Safari and Chrome). Here’s how to do it.

Open the settings of the specialty section and add the following CSS Class:

CSS Class: cust-scroll

scrollable recent posts

Then open the page settings modal and add the following custom CSS to the page.

/* width */
.cust-scroll ::-webkit-scrollbar {
  width: 8px;

/* Track */
.cust-scroll ::-webkit-scrollbar-track {
  background: #444444; 
/* Handle */
.cust-scroll ::-webkit-scrollbar-thumb {
  background: #888888; 

/* Handle on hover */
.cust-scroll ::-webkit-scrollbar-thumb:hover {
  background: #ffffff;

This changes the width of the scroll bar to 8px and adjusts the colors for the track and handle. Feel free to experiment with more designs and colors on your own.

scrollable recent posts

And in case you were wondering, the fallback for other browsers will be the browsers default style for scroll bars.

Final Thoughts

Adding vertical scroll to content does come in handy whenever you are wanting to give users the option to view more content in a confined space. A scrollable recent posts widget area is a great example of how vertical scroll can work really well. Of course, you can replace the sidebar module used in this tutorial with a text module and add vertical scroll to any content you want. The same customization will apply to any module.

In regards to styling the scroll bar, I’m sure there are other plugins or Javascript solutions that would give a more cross browser solution. If you know of any good ones, please feel free to share them with us.

I look forward to hearing from you in the comments below.


Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

Get a Free Skin Care Layout Pack For Divi

Get a Free Skin Care Layout Pack For Divi

Posted on May 13, 2024 in Divi Resources

Hey Divi Nation! Thanks for joining us for the next installment of our weekly Divi Design Initiative; where each week, we give away a brand new Layout Pack for Divi. This time around, the design team has created a beautiful Skin Care Layout Pack that’ll help you get your next Skin Care website up...

View Full Post


  1. Hi Jason, great tutorial. It would be even greater if you could add thumbnail images!

  2. Hello Jason. It’s really useful. Thanks!

    Is there anyway to display on this right customized sidebar only one category of posts?

    I know that on blog I can chose the categories to display. This side is OK.
    I tried to insert Category instead of Recent Posts into the widget created, but it shows all categories, not the posts name…

    Is there a solution for this issue?

    Thanks again…

  3. This scrollable widget seems very useful and practical.

  4. Hi,
    Is there a way to fix the height mentioned in; “The custom 640px height is given to match the height of the scrollable recent posts widget area ” ??

    I have set the height to 640px, but it still over runs this area.

    I’ve also tried setting the ‘max height’ to 640px, but it still over runs.

    I’d like it to have the blog image and an excerpt, like >>more etc but I can’t seem to fix the height correctly.

    Many thanks,

    • Rich,

      First I would download the json file layout included in this post to see if your settings match. In my example, I have limited the blog module to displaying only 2 posts with the default excerpts. If you have custom excperts in your posts that are longer, this may be your problem. You can always increase the height of the row on the left to whatever height you need and then give the same max height to the sidebar module on the right.

      Hope that helps.

      • Hi Jason,
        I did import the json file. I think you’re right though. I’ll increase the sidebar height to match the post length.

        Thanks for your prompt response!

        Kind Regards,

  5. Very good tutorial.
    Allows you to effectively customize a page.
    The css customization of the scrollbar works
    also with opera and falkon.
    Thanks for the file sharing.

  6. That’s actually pretty cool. I think I’ll try it.

  7. hi

    Thank you Jason ! 😉

  8. Another great tutorial! Thank you! I’m happy to see this one.

    • Awesome! Thanks

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today