How to Add CSS Code Snippets to the Divi Theme

by | Last updated May 9, 2026 | Divi Tutorials

add css code to Divi

Most of the Divi Tutorials on this blog will involve adding some CSS snippets to your Divi theme.

Here are the steps to adding CSS snippets to your Divi website.

How to Add CSS to Divi via the Theme Options

This is the easiest, and the best way to add CSS to the Divi Theme.

  • Log into your WordPress dashboard.
  • Go to Divi > Theme Options
  • Scroll down to the bottom of the page.
  • Paste your CSS into the box named Custom CSS after anything else in there.
  • Click “Save”.

How to Add CSS to the Divi Style.css File

CSS can also be added to Divi directly, to the end of the style.css file found in Divi theme directory. However, this is not the best method as new updates to the Divi theme may cause this file to be overwritten and your changes to be lost.

How to Add CSS using a Child Theme

Another way to add CSS to Divi without risking your changes being lost is to create a child theme and place your new CSS in there.

Creating a child theme may sound technical, but we put up together a great piece of article on creating child themes.

You May Also Like:

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