Change Font Size in Single Divi Text Module

Written by Dan Mossop

Brent asks "Is it possible to change the font size in only one text module with CSS in Divi?"

It is indeed possible in the Divi Theme to change the font size on a single text module. Here are two ways to do it.

Changing the Font Size in the Text Module Settings

The option to set the text module text font size is now an option within the text module itself. You'll find it in the module's "Advanced Design Settings" tab, like so:

The Old Way

If you're stuck on an old version of Divi, or are unable to use the built in setting for some other reason, you can do it via CSS, like so:

.post-57                                   /* apply to page / post with ID 57 */ 
.et_pb_section:nth-of-type(1)  /* apply the the first page builder section */
.et_pb_row:nth-of-type(1)        /* apply to the first row of the section */
.et_pb_column:nth-of-type(2)  /* apply to the second column of the row */
.et_pb_text:nth-of-type(2)        /* apply to the second text module in the column */
{ 
  font-size: 14pt; 
}

This looks quite complicated, but it's actually fairly simple.

The page builder lays out pages in sections. Each section is then split into a number of rows, and each row into a number of columns. Each column contains a number of modules, some of which may be text modules (which have the .et_pb_text class). The rule above uses the nth-of-type operator to navigate this structure, picking the correct section, row, column and text module within the required page.

Finally, we set the font-size as required.

Unlock the Full Potential of Shortcodes in Divi!

Empower your Divi site with the Divi Shortcode Enabler. This plugin allows shortcodes to run effortlessly in various Divi module fields, enhancing functionality and customization across your site. Perfect for those looking to fine-tune their text module settings with ease.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

8 Comments

  1. If in your text box you switch to the 'Text' rather than 'Visual' tab and you add html tags manually such as an h3 heading tag, 'My heading', then you will be able to style those h1-h6 to have different font-sizes in the Advanced Design settings to the body font. For any other tags.. you will have to add a custom CSS reference.

    Reply
    • Thanks for the tip, Diyafury :)

      Reply
  2. I already commented with a question that never was answered. Is there a way to do this in the divi booster that I paid for? I'm trying to find items within this package that makes it worth my money and this would be one thing if it's a part of it.

    Reply
    • Hi Amy, sorry I wasn't able to reply sooner. I've now replied to your previous comment. Here's what I wrote… Is that as in using more than one font / font size within a single module? I'm afraid this isn't currently possible in Divi Booster. I'm also not aware of any other way to do it, barring doing it manually with html / CSS. If I'm able to come up with an easier way of doing it, I'll be sure to let you know.

      Reply
  3. Does the plugin that I paid for enable one to change font sizes and types within one text module?

    Reply
    • Is this thing on? :)

      Reply
      • Guess not.

        Reply
    • Hi Amy, is that as in using more than one font / font size within a single module? I'm afraid this isn't currently possible in Divi Booster. I'm also not aware of any other way to do it, barring doing it manually with html / CSS. If I'm able to come up with an easier way of doing it, I'll be sure to let you know.

      Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

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

We may earn a commission when you visit links on our website.

Latest From Divi Booster

Set Hover Color for Menu Links in the Divi Menu Module

Customizing the hover color of menu links lets you enhance the user experience and maintain visual consistency with your website’s brand. By setting a specific hover color, you can guide visitors' attention and improve navigation feedback. In this guide we show you...

Enable Automatic Looping for YouTube Videos in the Divi Video Module

Enabling automatic looping for YouTube videos in your Divi video module ensures that content plays seamlessly and continuously without interruption. This feature can enhance user engagement, highlight key information, or create dynamic visual effects on your website....

Hide Video Controls in Divi Video Module

Disabling YouTube video controls in the Divi Video Module helps create a seamless, distraction-free viewing experience for your site visitors. This approach is useful when you want full control over how your video content appears and is interacted with on the page, or...

Mute YouTube Videos by Default in the Divi Video Module

In the Divi Video Module, starting your YouTube videos muted by default can create a more user-friendly browsing experience on your webpage. It is particularly beneficial for reducing distractions, enhancing visitor engagement, and providing a seamless content preview...

Autoplay Videos in Divi Video Module

Enabling videos in your Divi video module to start playing automatically can enhance both the site's design and user engagement. To ensure full compatibility with browser requirements, such as Chrome's autoplay policy, it's often necessary to start your videos muted...

Random Divi Posts