To change the background color in the Divi Theme, you can do so by adding CSS to Divi, like so: #main-content { background-color: green !important; } This will set the background on the main content, but leave the header and footer untouched.
Features
Changing the Default Divi Font Size
If you'd like to change the default font size in the Divi Theme, you can do so by adding CSS to Divi, like so: body { font-size:130% !important; } This will change the font-size of many components, such as there text in fonts, in the footer and in the sidebar. Note...
Adding PHP code to the Divi Theme
Some of my fixes for the Divi theme require PHP code to be added to make the required change to the theme. This post briefly covers the various options and their various advantages.To add PHP code to the Divi Theme, you can: Use Divi PHP Code Module - to add PHP...
Hide the Divi Header Navigation Links
If you'd like to hide the navigation links (including the search icon) in the Divi Theme's standard header, here are several options.Hide the Divi Header Menu within Divi Settings It's possible to remove the menu links and search icon within Divi itself. To do so: 1....
Stop the Divi Header from Shrinking on Scroll
The Divi Theme header has a default scroll effect which sees it "shrink" to a more compact version as you scroll down the page. If you'd like to keep the header at full-size as you scroll down the page, you can do so using either of the two methods below.Stopping the...
Open Divi Slider Button Link in New Tab
To make Divi Theme's slider button links open in a new tab, you can add the following into the footer.php file (of the theme itself, or a child theme): <script> jQuery(function($){ $('.et_pb_more_button').attr('target', '_blank'); }); </script> This is...
Greyscale Google Maps in the Divi Map Module
The Divi Theme comes with a map module that makes it easy to embed Google Maps into your webpages. Here's a quick cross-browser CSS snippet for displaying the map in greyscale rather than the standard Google Map colors:
Changing the Divi Logo Height
The Divi theme lets you put your site logo in the header. As you scroll down, the header shrinks to take up less space, and the logo shrinks with it. Here's how to change the height of both the normal and shrunken state of the logo. How to Set the Divi Logo Height...
Prevent Distortion on Divi Gallery Images
The Divi Theme gallery module has a grid view which shows thumbnails of the images in the gallery. Sometimes the thumbnails will appear distorted, as small images are stretched to fill the thumbnail area. To prevent the image stretching, we can use the following CSS:...
Put Divi Slide Images on the Right
Divi includes a slider module (and fullwidth slider module) which lets you display a slideshow of slides, each containing a description and (optionally) an image. By default the image is on the left and the description on the right. If you'd like to swap the position...