How To Create Custom Star Rating Modules In Divi 5

Posted on April 2, 2026 by Leave a Comment

How To Create Custom Star Rating Modules In Divi 5
Blog / Divi Resources / How To Create Custom Star Rating Modules In Divi 5

Star ratings are one of the quickest ways to communicate trust and perceived quality on a website. Whether you are highlighting product reviews, service testimonials, or customer feedback, a well-designed star rating adds instant visual context. The challenge is making it look polished, reusable, and responsive without overcomplicating the build. In Divi 5, that process is much easier.

One of the most useful tools for this kind of custom component is Module Groups. Groups let you bundle multiple modules into one manageable unit, which makes it easier to build repeatable UI elements such as badges, review summaries, pricing callouts, and custom star ratings.

In this post, we’ll walk through how to create a custom star rating module in Divi 5 using Groups and Flexbox. By the end, you’ll have responsive, reusable star rating designs that you can save and use throughout your site.

Let’s get started.

What Are Module Groups?

Groups are one of the most useful structural additions in Divi 5. A Group is a container element that lets you bundle multiple modules into a single, cohesive unit inside a column. Once modules are placed inside a Group, you can move, duplicate, style, and manage them together far more efficiently.

That makes Groups especially useful for building custom, repeatable components without needing extra Nested Rows.

Here are a few of the most useful things Groups bring to this workflow:

  • Built-in Flexbox controls: Groups work especially well with Divi 5’s Flexbox-based layout system, giving you visual control over direction, alignment, justification, wrapping, and gap spacing across breakpoints.
  • Nesting support: You can place Groups inside other Groups to build more advanced structures while keeping the layout organized.
  • Group-level styling: Apply backgrounds, borders, shadows, spacing, sizing, transforms, and other design settings at the container level.
  • Reusable design patterns: Once a Group-based component looks the way you want, you can save and reuse it across your site.

In short, Groups make it much easier to build polished, reusable components like star ratings while keeping your page structure lean and manageable.

Step-By-Step Guide For Creating A Star Rating Module

In this section, we’ll build two custom star rating designs using Groups and Divi 5’s native Flexbox controls. The first example is more decorative and layered. The second is much simpler and works well for compact rating displays.

While Nested Rows could also be used for certain custom layouts, they are unnecessary here. Groups and Flexbox provide enough control to handle spacing, alignment, and responsiveness with fewer layers and less overhead.

Star Rating Module Example 1 (Layered Design)

A custom star rating module in Divi 5

Set Up The Group Structure

Start by creating a new page or opening an existing one in the Visual Builder. Add a new three-column row to the page.

Adding a three-column row in Divi 5

In the first column, add a Group. This will be the Main Group.

Adding a Group in Divi 5

Inside that Group, add another Group. This will be the Circle Group.

Nested Groups in Divi 5

Next, use Layer View to add another Group inside the Main Group.

Using Layer View in Divi 5

Hover over the Main Group in Layer View, open the menu, choose Add Element, and place another Group inside it. This will be the Star Group.

Adding nested Groups in Divi 5

Now select the Main Group, go to Design > Layout, and set Layout Direction to Row. This places the Circle Group and the Star Group next to each other.

Setting layout direction in Divi 5

Size The Groups

Now set the sizing for each nested Group. Select the Circle Group, go to the Design tab, and open Sizing. Set the Width to 25%.

Setting Group width in Divi 5

Use the Responsive Editor to adjust the width at smaller breakpoints. Keep it at 25% for larger screens, then set Phone Wide and Phone to 20%.

Editing responsive values in Divi 5

Repeat the process for the Star Group, setting the Width to 75% on larger breakpoints and 80% on Phone Wide and Phone.

Sizing nested Groups in Divi 5

Next, select the Main Group, go to Design > Layout, and set the Horizontal Gap to 0px.

Adjusting horizontal gap in Divi 5

Then set Align Items to Center.

Aligning items in Divi 5

Add Design Elements To The Circle Group

With the structure in place, click into the Circle Group and add a Text module. Set a Background Color in the module settings.

Setting a background color in Divi 5

Go to the Design tab and open Layout. Set both Justify Content and Align Items to Center so the rating number stays centered inside the circle.

Text module layout settings in Divi 5

In Sizing, set both Width and Height to 60px.

Sizing a Text module in Divi 5

Use the Responsive Editor to reduce those values at smaller breakpoints if needed.

Next, open Border and set the Border Radius to 50%. Add a 2px border and choose a border color.

Styling borders in Divi 5

Finally, go to Advanced > Position and set the Z Index to 15. This allows the circle to overlap the Star Group cleanly.

Setting z-index in Divi 5

Style The Star Group

Select the Star Group and assign a background color in the Content tab.

Assigning a background color to a Group in Divi 5

In Design > Layout, set the Horizontal Gap to 15px. Then use the Responsive Editor to adjust it for smaller devices as needed.

Setting horizontal gap in a Group

Open Spacing and add a -35px left margin, 10px top and bottom padding, and 30px left padding. Tweak those values by breakpoint if your design needs more room on smaller screens.

Group spacing settings in Divi 5

Next, open Border, set the Border Radius to 10px, add a 2px border, and choose a border color.

Group border styles in Divi 5

Finally, in Transform > Transform Skew, set the X-axis skew to -10deg.

Transform settings in Divi 5

Add The Star Icons

Now click inside the Star Group and add an Icon module.

Adding an Icon module in Divi 5

Choose a Star icon in the Content tab.

Selecting a star icon in Divi 5

Then go to Design > Icon and set the Icon Color and Icon Size. Use the Responsive Editor to fine-tune the size at different breakpoints.

Adjusting icon settings in Divi 5

Because the parent Group is skewed, the icon will also inherit that visual distortion. To counter it, open the Icon module’s Transform settings and apply a 10deg skew on the X-axis. This counter-transform keeps the star visually straight while preserving the skewed container shape.

Adjusting transform skew controls in Divi 5

Using Layer View, duplicate the Icon once.

Change the color on the second icon to create contrast.

Changing icon color in Divi 5

If the icons stack vertically, select the Star Group, go to Design > Layout, and set Layout Direction to Row.

Adjusting a Group's layout direction in Divi 5

Then duplicate the second Icon three more times until you have a five-star row.

Duplicating items in Divi 5

At this point, your star rating module should look like this:

Finished custom star rating module in Divi 5

Once the module is complete, give the Group a clear Admin Label such as 1-Star Rating, then save it for reuse in your library.

To create variations, duplicate the saved version, adjust the rating number, swap colors, rename it, and save each version as its own reusable item.

A practical best practice here is to decide early whether you want the component to show only full-star values or support partial ratings visually. If you need half-star or decimal-style ratings, build that variation intentionally from the start so your saved versions stay consistent.

Apply The Module To An Existing Layout

Once saved, you can add the star rating module anywhere on your site by loading it from your saved items when inserting an element.

For example, you can place it in a product section, adjust the width as needed, and use z-index settings to create a layered composition.

Star rating module layout example

Star Rating Module Example 2 (Basic Design)

Basic star rating module layout

Using a simpler version of the same approach, you can also create a minimal star rating with a single Group. This style works well for product cards, short reviews, and compact content areas.

Add a new three-column row, place a Group in the first column, and add one star Icon module inside it.

Adding modules to a Group in Divi 5

In the Group’s Layout settings, set the Horizontal Gap to 5px, Layout Direction to Row, and both Justify Content and Align Items to Center.

Group flexbox settings in Divi 5

Set a background color on the Icon module, then choose a white icon color and an Icon Size of 20px.

Icon settings in Divi 5

In Spacing, apply 5px padding on all sides.

Icon padding in Divi 5

Then add a 5px border radius to the Icon.

Icon border styles in Divi 5

Finally, duplicate the icon until you have a five-star row.

From there, save it for reuse and insert it into other layouts as needed.

Basic star rating module example in Divi 5

A small but helpful improvement for this simpler version is to save multiple color variants up front, such as gold, dark, muted, and brand-colored versions. That gives you more flexibility when dropping the module into different design contexts later.

Download The Files

Star rating module examples

In addition to the two examples above, there are five more variations you can use in your own projects. Download them below, import the JSON files into your library, save them as individual reusable items if needed, and place them throughout your site.

Start Building In Divi 5 Today!

Creating custom star rating modules in Divi 5 is straightforward once you use Groups and Flexbox together. They give you enough structural control to build reusable, responsive components without needing custom CSS, extra plugins, or unnecessary layout layers. From a layered badge-style design to a simple five-star strip, the same workflow scales well across different use cases.

The biggest advantage is reusability. Once you build one version cleanly, you can save it, duplicate it, create variations, and use it anywhere you need rating visuals across your site. That makes star ratings faster to maintain and much easier to keep consistent.

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

6 Collages For Divi 5 (Free Download!)

6 Collages For Divi 5 (Free Download!)

Posted on March 31, 2026 in Divi Resources

Divi 5 makes it easy to build modern, image-driven layouts that feel polished without adding unnecessary complexity. In this free pack, you’ll get 6 Collage Sections designed for hero areas, product spotlights, portfolio intros, creative landing pages, and other content that benefits from...

View Full Post
How To Build A Floating Image Animation In Divi 5

How To Build A Floating Image Animation In Divi 5

Posted on March 29, 2026 in Divi Resources

Floating images are elements that appear to hover and drift above the page, creating depth and organic motion without any user interaction. You’ve seen them on agency sites, SaaS landing pages, and portfolio headers—images that gently bob and sway as if suspended in space. The effect transforms...

View Full Post

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today