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 Posts

Set Custom CSS IDs for Individual Divi Accordion Items

Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion...

Enable Swipe Navigation in the Divi Gallery Lightbox

Enabling swipe navigation in the Divi Gallery module's lightbox allows users to seamlessly browse through gallery images by swiping left or right, creating a more interactive and mobile-friendly experience. This functionality can significantly improve user engagement...

Disable Slide-In Animation for Divi Gallery Grid Images

Control how images appear in your Divi Gallery module by toggling the slide-in animation effect for grid layouts. Disabling the slide-in animation allows gallery images to load instantly and appear statically, providing a faster and distraction-free browsing...

Control Image Count Display in Divi Gallery Lightbox

Displaying or hiding the image count in the Divi Gallery module’s lightbox can help customize the user experience, depending on whether you want to give visitors an indication of gallery progress or prefer a cleaner, distraction-free view. The ability to toggle this...

Hide Gallery Image Titles in the Divi Lightbox Overlay

Displaying image titles in the lightbox overlay of the Divi Gallery module can sometimes be distracting or unnecessary, depending on your website’s design and user experience goals. Hiding these titles creates a cleaner and more focused viewing experience for visitors...

Random Posts