Nested Variables, Variable Math & Variable Combinations for Divi 5

Nested Variables, Variable Math & Variable Combinations for Divi 5

October 27, 2026

I’m excited to introduce a new level of flexibility for Divi 5 variables: combine them, nest them within other variables, and use them directly in calculations within your settings. 🎉

Create spacing relationships that stay connected as your design changes. Build fluid sizes from shared minimum and maximum values. Mix reusable text, dynamic content, and your own words in the same field.

This expands on Design Variables and works alongside Relative Colors, turning reusable values into the building blocks of more connected designs and content.

Let’s take a look at how it works. 👇

Create Design Relationships With Variable Math

A number variable can now be part of a calculation. Insert your variable into a supported number field, then combine it with other values using addition, subtraction, multiplication, or division.

Imagine a section with padding controlled by a Spacing variable. You want an image inside that section to extend beyond its edge. Use the same variable multiplied by -1 for the image’s margin, and those two settings stay connected. Adjust the original spacing, and the negative margin follows.

Get all the details!

0 Comments

Submit a Comment

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


You May Also Like...

Foster D. Coburn III

Foster D. Coburn III built his first Web site in 1995 and he has been working exclusively in WordPress since 2013. He has used the Divi theme exclusively since 2015. Earlier in his career he was the author of 13 best-selling books on CorelDRAW and has been a contributor to numerous technology and graphics-related magazines. Foster has taken many projects, including this Web site, from the early design stage through to a finished piece. He has been a featured speaker at many graphics conferences.

Free Subscription

Get Divi, WordPress and Web design tips along with notifications of new videos!