Divi

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

Add Dividing Line Between Divi Sidebar Widgets

To add a dividing line between the individual widgets in the Divi Theme's sidebar, we can add the following CSS: #sidebar .et_pb_widget { border-bottom: 1px solid #ddd; padding-bottom: 20px; margin-bottom: 20px; } #sidebar .et_pb_widget:last-of-type { border-bottom:0;...

Changing the Divi Post Title Style

To change the style of the post titles in the Divi Theme, you use CSS like the following: .single h1 { font-family: Courier; font-size: 30pt; color: green; border-bottom: 1px solid #ddd; } This example change the post title font to Courier, makes the font size bigger,...

Removing the Divi Header Bottom Border

The Divi Theme header area is separated from the content by a thin grey line at the bottom of the header. The "border" at the bottom of the header bar is not actually a border, but a thin shadow. If you'd like to remove this, here's how:Remove the Header Bottom Border...

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