Change Font Size in Single Divi Text Module

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.

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin

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 *.