How to Make Divi Text Module Editor Toolbar Sticky on Scroll

by | Last updated Oct 28, 2024 | Divi Tutorials

Make Divi Text Module Editor Toolbar Sticky on Scroll

If you are reading this, then it means you’ve gotten tired of having to scroll through a long text, back and forth for you to access the Divi text module editor toolbar.

In this short tutorial, I will show you how to quickly solve the issue using a simple custom CSS code.

Take a look at this:

non sticky toolbar

The above is the default Divi text module editor. Notice that the toolbar disappears on scroll – making it difficult to format a long text within the text module. 

To fix this, we’ll add the Custom CSS Code below. 

Go to Divi > Theme Options > Custom CSS and paste the CSS Code below.

.mce-top-part {

    position: sticky!important;

    top: -60px;

}

After adding the CSS Code, this should be the result:

non sticky toolbar

Note that the above solution works only for Visual Builder, but not backend builder.

For backend builder, you will need to paste the below code in your child theme functions.php:

add_action('admin_head', 'divi_help_wp_admin_css');
function divi_help_wp_admin_css(){
    echo '<style>
        .mce-top-part {
            position: sticky!important;
            top: -60px;
        }
    </style>';
}

Well, that’s it! We hope you enjoyed reading this tutorial. There are more cool tutorials to come, so please make sure to sign up for our newsletter.

Shop Divi Products

Buy nicely done Divi Layouts, Child themes, and extensions for your next Divi project.

Related Articles

How to Add Padding Around Featured Images in Divi’s Blog Module

How to Add Padding Around Featured Images in Divi’s Blog Module

If you're using the Divi theme for your WordPress website and want to customize the appearance of your blog posts page, one simple tweak you can make is adding padding around the featured images. This can help create a more visually appealing layout and better...

Divi Logo Guide: Everything You Need to Know

Divi Logo Guide: Everything You Need to Know

A professionally designed logo is a powerful branding asset that can leave a lasting impression on your website visitors. Research shows that a well-designed logo can boost consumer trust in a brand by an impressive 75%. But the question most people ask is – how do...

Leave a Comment

0 Comments

Submit a Comment

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

WP101 - FREE WordPress Tutorials

Enter your email address below to gain access to the FREE WordPress training.

You have Successfully Subscribed!

Pin It on Pinterest