Blue Diamond Web Services

Your Best Hosting Service Provider!

January 12, 2019

The Ultimate Guide To Using Parallax

Ultimate Guide to Using Parallax With Divi

Posted on July 24, 2017 by  in Divi Resources | 32 comments

Ultimate Guide to Using Parallax With Divi
Trying to find the right size image for parallax can be a little frustrating. The image may look great as a standard background image, but then as soon as you select “Use Parallax Effect”, the image gets blown up and nothing looks right. To avoid this aggravation in the future, you need to understand what parallax is and what is happening to the image when it is put in parallax mode.

Today, I’m going to dive deep into the ways parallax works with Divi. I’ll explain exactly what happens when you use the two different parallax methods, what size image is best, and I’ll even throw in some custom css hacks to position your images just how you want them.

Let’s get going.

What is Parallax?

In regards to web design, parallax is a term used to describe an effect that gives the perception of life-like distance and motion using a kind of two-dimensional animation. This is accomplished by changing the scrolling speeds of different elements on a webpage to create the illusion of distance while viewing a fixed point. The technique has been around for a while in places other than the web. Remember Super Mario Brothers? If you have ever played video games in the 80’s (Nintendo NES), most of the games used this technique to give the impression of movement using only 2d imagery. The items in the forefront moved quicker than the trees/mountains/clouds in the background. Thus creating a more life-like motion.

parallax

This effect is much like the True Parallax method in Divi. Except the movement is vertical instead of horizontal.

parallax

Understanding How Parallax Works with Divi

With Divi, Parallax is really easy to deploy on any background image within any section, row, column or module. All you have to do is set the Parallax Effect option to “YES” and then select your Parallax Method (CSS or True Parallax).

parallax

The CSS Method

The CSS Method is one of two methods you can choose for your parallax effect. You can probably guess what is happening just by testing this method out on your site. It is referred to as the CSS Method because it only uses CSS to create the effect. This method uses CSS to fix the background image in place while the other elements on the page scroll normally. This gives the impression that the content is moving in front of the background image.

parallax

The True Parallax Method

The second method is called True Parallax. It is called “True” probably because it exemplifies the conventional idea of the parallax effect. This method uses CSS and JavaScript to create a slightly slower scrolling movement than the other elements on the page. This is a more life-like representation of movement because of the perception of distance it creates between the slow moving image in the background and the faster moving elements in the forefront.

parallax

What Happens When Parallax is Enabled in Divi?

This can be frustrating if you don’ t understand what is going on behind the scenes. Therefore it is helpful to know exactly what is happening to the image when parallax is activated.

What Happens When CSS Method is Selected?

When CSS Parallax is selected, the image is wrapped in a new div with an absolute position that spans the full size of the browser window. Here are the CSS Classes and snippets of code that do this in Divi:

.et_parallax_bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}
/*** This sets the image to fixed when using the CSS method ***/
.et_pb_section_parallax .et_pb_parallax_css, .et_pb_slides .et_parallax_bg.et_pb_parallax_css {
    background-attachment: fixed;
}

Since the background-size is set to “cover” with a height and width of 100%, the image will always “cover” every part of its container. In this case, the container is the browser window. This means that parts of the image will become hidden behind other content sections since the background image will always keep expanding and contracting along with the browser window size.

Imagine this is a regular background image added to a header module at the top of a page.

parallax

The aspect ratio of the image is correct (1920×1080) and the size of the image covers and fits in the section nicely without any overlap when viewed on a 1366×766 screen size. The white area below the image is the rest of the content on the page.

Now this is what happens when you select parallax for your image.

parallax

As you can see, the image expands both vertically (to reach the bottom of the browser window) and horizontally (to keep the aspect ratio of the image). The black square represents your monitor so everything inside the black square is what the viewer sees. I made the white content section at the bottom semi-transparent so that you can see where the background image sits hidden behind it. There the image stays fixed while you scroll and other elements move up and down in front of the image.

What Happens When True Parallax Method is Selected?

If you have True Parallax set, the image is wrapped in a new div with the same CSS class:

.et_parallax_bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

However, through the use of a little JavaScript, the height and position of the image is dynamically set based on the size of the browser window and when scrolling down the page. The two values that are dynamically added to the background image are the px value for height property and the translate value for transform property. The height property value determines the height of the image while the transform property translate value determines the exact positioning of the image on the page according to the x and y axis.

Here is the code that gets inserted to the image tag of my parallax background image with my browser window being 1366×766:

height: 960.8px;
transform: translate(0px, 220.5px);

Notice the two numbers in the transform property. These two numbers control the positioning of the background image. The first number (0px) positions the image along the x axis (horizontally). Since it is set to 0px, the image won’t be moved. The second number positions the image along the y axis (vertically). Since it is currently 220.5px, that means the image is being pushed down the page 220.5px.

Also notice the height value (960.8px) is greater than the height of my browser window (766px) by about 200px. This is to accommodate for the image being pushed 220.5px past the bottom of the browser window.

When the True Parallax Method is selected, you may have noticed that your image gets blown up even more than the CSS Method. This is because the position of the image is stretched an additional 30% of the browser height.

Remember our regular background illustration?

parallax

Here is what happens to the image after True Parallax is selected (before you start scrolling of course):

parallax

As you can see, the image is pulled a bit more past the bottom of the browser window. This browser window is about 1080×700 so it is fairly small, but I wanted to show you what is happening on a smaller desktop window.

Why Does True Parallax Stretch the Image So Far?

Well, my best guess is to accommodate for larger screen sizes. Once the browser window reaches a 1920×1080 screen size, the background image no longer extends past the bottom of the window anymore and fits nicely.

Why Does True Parallax Use JavaScript?

The main reason True Parallax requires JavaScript is because the background image needs to move at a different speed than the other elements when scrolling. Remember Mario Brothers?

With True Parallax, if I increase the size of my browser, the height value also dynamically increases through JavaScript making sure my image is always big enough for the browser.

If I scroll down the page, the translate position value (the 220.5px in the above example) increases, moving the vertical (y-axis) position of the image down the page.

If I scroll up, the translate position value decreases, pulling the image back up the page. But because the image is being pushed down and pulled up at a different speed than the other elements when scrolling, you get the True parallax effect.

What Kind of Image Should I Use?

If you are looking to use the parallax effect on your site, choosing the right background image is crucial. You don’t want the background to be too cluttered or distracting. But on the other hand you don’t want it to be a boring side note either.

Here Are 5 General Tips for Picking the Right Kind of Image for Parallax

  1. Avoid Distracting Photos. Images that have too much going on with create confusion and distract from the content.
  2. Make sure your photo matches the theme of your site. Your site should be telling a story. This parallax image (like the rest of your images) should fit in with the theme.
  3. Keep it big and simple. Remember, your parallax image will be viewed on smaller screen sizes as well. Make sure the details of the photo aren’t so small that they can’t be recognized on smaller devices.
  4. Add an overlay color when necessary. Sometimes a good parallax image will have both dark and light aspects which may end up hiding your text when scrolling. Adding a dark or light overlay will guarantee your text can be read anywhere on the image
    parallax
  5. Make It Interesting. There are way to may photos out there to settle for something boring. Take the time to find one that engages your audience and grabs their attention.

What Size Parallax Background Image Should You Use?

This one is a little tricky to answer. There are no one size fits all parallax images. In fact there is no one size fits all anything in web design, at least not since responsive design came around. But, even though I may not be able to give you a firm rule, I can offer some general guidelines for picking the right size parallax background images with Divi.

Since the most popular screen size is about 1366×766, I would definitely make sure all background parallax images be at least this size. But because of the popularity of larger monitors, I would go with a bigger size like 1920×1080. This will make sure users see a high quality image on larger desktops.

The problem with having an image with the dimensions 1920×1080 is that rarely will you ever have a visible section that is 1080px in height. So you can bank on the bottom of those images staying hidden.

Helpful Tips for Getting Your Parallax Background Image To Look Right

For Headers and Top Sections

The easiest way to make sure your image is fully visible and looking great is to use the Fullwidth Header Module. That way your background image will always look great no matter what screen size. But, If you are using a parallax background image using the Fullwidth Header Module, you may need to add some padding to top and bottom of the module to show more of the image. You can do this by using the Visual Builder. Go to the Header Module Settings. Under the Advanced Tab, enter the following in the Main Element text box:

Padding: 250px 0 250px;

parallax

That should get you going in the right direction.

If you still don’t have enough of the image showing, I would suggest cropping the top part of your image and then upload it again. This may help.

Also, try to select photos that have insignificant content at the bottom of the image and the more important content at the top. For headers, you should only expect to see the top 700px of the parallax image.

For Regular/Middle Sections

Make sure you leave enough space around your content to expose the background enough so that you can get a full picture when the section reaches the center viewpoint of the user. Use the padding to your advantage. If you are going to use parallax, don’t let your users get confused and have to scroll up and down just to see what the image is. Better to show them the first time around.

For Bottom Sections/Footers

If you are using the CSS Method, you can expect to see more of the bottom of your background image (depending on how much space you have). I would try cropping the bottom of the photo to show more of the top in these sections.

If you are using the True Parallax method, you are going to see mostly the top of your images, so I would treat them like your headers.

Here is an example of True Parallax background images at the top, middle, and bottom of the page.

parallax

This type of image of a bridge works well because it has a nice focal point off to the side and the bottom of the image isn’t as significant as the top, so the message is never lost on the user.

Here is the same page using the CSS method. You can really see the fact that the background image is fixed and expands to the browser window. It even looks like it is the same image fixed in the background the whole time.

parallax

If you still aren’t satisfied after you have searched for the perfect image, added necessary padding, and cropped it, you can always resort to some hacking.

Parallax Image Hacks: Changing the Position of the Image with Custom CSS

If you want to change the position of the parallax background, you can use the css selector “.et_parallax_bg”. Here is the default css that positions the image for the parallax effect.

.et_parallax_bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

If you notice, by default, the background position property for the css parallax method is as follows is set to “top center”. But if I wanted to change the original position of the background image, you can adjust the background-position property values.

If you want to keep your Custom CSS condensed to a certain image and not have it effect all your parallax background you will need to add a class to your section so we can identify in the css which background we need to customize.

Go to the section settings, under the Advance tab, and enter a CSS Class called “parahacks”.
Now go to Page Settings and select the Advanced tab.

parallax

Then use the Custom CSS box to enter any of the following examples of Custom CSS:

If using The CSS Method, you can make the background image vertically centered by adding the following custom css:

.parahacks .et_parallax_bg {
    Background-position: center center !important;
}

To make the background image bottom aligned, add the following custom css:

.parahacks .et_parallax_bg {
    background-position: bottom center !important;
}

To make the background image move up a certain number of pixels, add the following custom css:

.parahacks .et_parallax_bg {
    background-position: center -150px !important;
}

If using True Parallax method, you have to account for the extra 220px (more or less depending on your browser height) of image that is hidden at the bottom. To make the background image more vertically centered, you need to adjust the background-position property using a negative pixel value like so:

.parahacks .et_parallax_bg {
    background-position: center -100px !important;
}

To make the background image more bottom aligned, add the following custom css:

.parahacks .et_parallax_bg {
    background-position: center -220px !important;
}

TL;DR? Here’s a Video Summary of the Main Points

Subscribe To Our Youtube Channel

In Closing

I sincerely hope this guide was helpful in gaining a deep understanding of how parallax works with Divi. Thankfully Divi does almost all of the heavy lifting in providing us with parallax functionality. The CSS method and the True Parallax method both create great life-like effects out of the box. However, it is up to us to find the right images and tweak them just right to make them work for our site. Go for it! I bet you will create something amazing.

Look forward to hearing from you in the comments.

Cheers!


January 11, 2019

5 Easy Ways to Beautify Your Divi Sidebar

Posted on August 7, 2016 by  in Divi Resources | 66 comments

5 Easy Ways to Beautify Your Divi Sidebar
Welcome to Day 69 of our Divi 100 Marathon. Keep tuning in for 100 days in a row of awesome Divi resources as we count down to the amazing release of Divi 3.0 on the final day of the series!


When designing a website, the sidebar can sometimes be a little neglected. It’s easy to get carried away putting together a knock-out blog landing page and forget to remove the standard widgets and style them to match the rest of your site. Remember, even if your prefer the look of a full width post, the standard sidebar will still appear on archive pages.

Your sidebar is a great way to help your users navigate your blog area. You can use widgets to help them find the posts that will most appeal to them, as well as utilizing it for external advertising or internal marketing like newsletter sign-ups.

The Divi sidebar module also allows you to place an unlimited amount of custom sidebars on your layout pages. I particularly like using custom sidebars as part of the blog landing area. Here is a great example.

In this post, I’m going to share five of my favorite ways to spice up your sidebar. Before we get started, I’m going to be focusing on the standard sidebar, which you can edit, like all widget areas, via Appearance > Widgets in the WordPress Admin’s menu.

Divi_sidebar_area

1. Use the Elegant Themes Advertisement Widget

Although Divi doesn’t come with an image uploader widget, the ET Advertisement Widget is your secret weapon when it comes to adding images to your sidebar. You can of course add images using the standard WordPress text widget and writing the HTML to create an image link, but this ET widget makes it easy for you. You still need to pre-upload the image you want to add and copy the url from the media library, but you don’t need to know how to write the HTML code. You can add as many images as you wish, under just one heading (see below). You can also add additional titles and alt tags.

Divi_sidebar_ET_Ad_Widget

2. Style the Widget Titles

The widget titles in the standard sidebar will inherit the style of your H4 tags but if you want to customize them further, you can target them using the class .widgettitle. Using that class in the Divi Theme Options box, you can then change the font, size, color, alignment and padding.

You can find the Custom CSS box at the bottom of the Divi Theme Options > General tab.

divi-theme-options-custom-css-box

For example:

.widgettitle {
text-align:center;
font-size:18px;
padding-bottom: 20px;
}

One of my favorite styling tricks is to add a bottom border to the widget title, using the border-bottom property. Have a look at this example which has a nice editorial feel.

bottom border

You can achieve this effect by adding the following code snippet to your .widgettitle class.

.widgettitle {
    border-bottom: solid 2px #000000;
    margin-bottom: 25px;
}

3. Adjust the Margin Between Widgets

If you’d like to reduce the space between your widgets, or alternatively give them a little breathing room, you can adjust the bottom margin percentage. It’s quite hard to find by inspecting the code, so here’s a handy shortcut.

.et_pb_sidebar .et_pb_widget {
margin-bottom: 14% !important;
}

4. Use a Custom Menu to Display Categories

The standard WordPress categories widget gets the job done when you want to display categories in your sidebar but it’s tricky to style. It doesn’t allow you to display the categories in the order you want or to pick and choose which ones appear. This is annoying when you accidentally leave a post as uncategorized.

Instead, I like to use the Custom Menu Widget to display categories and it’s much easier to style.

First, create a new custom menu in the Appearance > Menus area. Then add your chosen categories and save the menu. There is no need to assign it to an area.

custom menu

You can then select that menu, Appearance > Widgets, using the Custom Menu widget.

If you’d like to really give your custom menu some style, you can add a background color and padding, as well as styling the font properties, as I have done below.

styled menu

In the example above, I targeted the custom menu links, using the following code:

.et_pb_widget ul li {
background-color: #f9f9f9;
padding: 10px;
}

5. Use a Widget Generator to Add Dynamic Social Media Content

Lots of bloggers love to add an Instagram feed to their sidebar. It’s a great way to keep your sidebar looking fresh and encourage visitors to follow you on social media. You can embed the code from Instagram manually in the text widget (see this great post about it on the ET blog) or add a free plugin like Alpine Photo Tile for Instagram. However, I don’t like to add plugins when I don’t have to and embedded code feeds are harder to style.

Instead, there is a new breed of widget generators that allow you to generate responsive code and style it easily before adding to your text widget (or code module if you want to add it to a builder layout).

My favorite is Lightwidget.

lightwidget

To use it, you’ll need to register and then log into Instagram online so that you can grant permission for the widget generator to access your account. Then choose your preferred number of columns and rows, preview your widget and grab the code.

Note: If you’d like to use the widget on a site with an SSL certificate (ie. which has https: in the url prefix), you’ll need to upgrade to the pro version.

Wrapping Up

I hope you enjoy spicing up your Divi sidebar. The above tips deliver small improvements which add up to a big impact. The devil is in the details!

Be sure to subscribe to our email newsletter and YouTube channel so that you never miss a big announcement, useful tip, or Divi freebie!


January 9, 2019

The Ultimate Guide to Using Images within Divi

The Ultimate Guide to Using Images within Divi

Posted on April 20, 2017 by  in Divi Resources | 85 comments

The Ultimate Guide to Using Images within Divi
Divi makes adding images to your website easy. The challenge for some however, is knowing the correct image sizes to use in each instance. There is no standard “perfect” size for all websites because each website is different. But, there are some things you as a web designer can do to make sure your images are a good fit for your Divi site. Which is where this post comes in!

In this article I’m going to take the guess work out of using images within Divi and teach you how to find (or create) the perfect size images for your Divi website, every time.

The Big Picture

Finding the perfect image sizes for your Divi website depends on three main factors:

  1. aspect ratio: the height and width of your image.
  2. column layout: the maximum width of your image.
  3. responsiveness: the changes made to the dimensions of your image on different screen sizes.

In the sections below I’ll show in detail how an understanding of these three factors can be used throughout Divi, resulting in perfect image sizes for any use case.

Divi Image Optimization Guidelines

Use Divi’s Image Aspect Ratio (16:9, 4:3, 3:4)

Aspect ratio expresses the proportional dimensions of the width and height of an image or screen. The number on the left of the colon represents the width (x axis) and the number on the right of the colon is the height (y axis). The two most popular aspect ratios are 4:3 and 16:9. These should look familiar to you if ever adjusted your TV screen or monitor settings before. The 4:3 aspect ration is the standard screen size for older TV’s and monitors and has a more box-like display. The newer high definition televisions and monitors today have the 16:9 aspect ratio which has a wider display. The 3:4 aspect ratio is useful in Divi for displaying portraits.

Divi was built with three aspect ratios in mind – 16:9, 4:3, and 3:4. For this post, I will be basing all recommended image dimensions on these aspect ratios. If you haven’t already done so, you can check out Divi’s image templates to see the standard sizes and aspect ratios recommended for your images.

Note: There are useful aspect ratio calculators out there that may help you find the right image dimensions as well.

Optimize Images Before You Upload

It is always best to optimize (resize, compress, crop, etc…) your images before uploading them to WordPress. Also try your best to keep all of your image file sizes between 60kb and 200kb. That way you aren’t slowing your page load time down too much. For a complete guide on how to optimize your images, go here.

Don’t Forget SEO

When it comes to reading images, search engines rely on the image’s filename, ‘alt’ text, captions, file type, file size, etc… This info is placed in the img tag which displays your image. Make sure you are adding this info to your images whenever uploading a new image to your media gallery.

Additionally, the Divi Builder allows you to add ‘alt’ text and title text from within certain modules. Keep an eye out for these when using certain Divi Modules.

From what I have researched, Google doesn’t read background images automatically since they are not wrapped in an img tag. Background images are displayed using CSS and are mostly used purely for design purposes.

File Formats

In general, most images on the web are either in JPEG, PNG, of GIF format. JPEG’s are good for most situations because of its compatibility, use of color, and small file size.

JPEG’s should be used for all of your full color photographs like featured images and background images.

PNG is also a very compatibile format for the web.  PNG’s are great for smaller images with a lot of detail.  The PNG format also supports transparent background capability which is perfect for logos and graphical elements.

GIF’s are good for small images with limited color.  GIF’s are unique because they can be animated, which is sometimes useful.

Image Dimension Guidelines Based on Divi’s Column Layouts

The following guidelines for image dimensions are based on Divi’s default layout settings. This includs a content width of 1080px and a gutter width of 3. Changing these settings may require you to adjust the dimensions of your images slightly.

The general rule of thumb is to have your images be at least as wide as the column in which it sits. Here are the dimensions you need to have for your image according to each column layout.

This doesn’t address the height your images need to be. So, here is a list of dimensions according to the 4:3 and 16:9 aspect ratios. This is helpful to keep your images at a width and height that scales appropriately for mobile.

The following image dimensions follow the 16:9 aspect ratio standard

1 column: 1080 x 608
¾ column: 795 x 447
⅔ column: 700 x 394
½ column: 510 x 287
⅓ column: 320 x 181
¼ column: 225 x 128

The following image dimensions follow the 4:3 aspect ratio standard

1 column: 1080 x 810
¾ column: 795 x 597
⅔ column: 700 x 526
½ column: 510 x 384
⅓ column: 320 x 241
¼ column: 225 x 170

Image Dimensions for Different Divi Modules

Image Module

When using the image module, you can simply follow the 16:9 and 4:3 layout to choose what image size you need for each column layout.

For example, if you are using a 4 column layout with a 4:3 aspect ratio, you would insert an image that is 225px by 170px for each column.

The upside to using the specific sizes for each column is that it gives you the exact image size you need without wasting image file size which may slow down your page load time.

The downside is that it doesn’t fill the column width on smaller screens like tablets. When the screen size drops below the 1080px breakpoint, the 4 column layout changes to a 2 column layout. This 2 column layout has room for an image size with a width of 370px. So if you want the image to fill the column width on tablet displays, you may want to start with an image size with a width of 370px instead of the 225px width.

Here is what a 4 column layout with 225px by 170px images looks like on a 2 column tablet display:

That looks pretty good, but if you started with an image that was 370px wide you would get an image that fills the column width on the 2 column tablet display like this:

So if you are looking to have your images fill the maximum width of the column on all devices, I recommend the following sizes for each column layout when using the image module.

For 4:3 aspect ratio:

1 column: 1080 x 810
⅔ column: 770 x 578
¾ column: 770 x 578
½ column: 770 x 578
⅓ column: 770 x 578
¼ column: 370 x 278

For 16:9 aspect ratio:

1 column: 1080 x 608
⅔ column: 770 x 433
¾ column: 770 x 433
½ column: 770 x 433
⅓ column: 770 x 433
¼ column: 370 x 208

Slider and Post Slider Background Images

Slider background images should be at least the width of the column that it sits in. So deciding on an image size is pretty straight forward. Just use the guideline for image sizes for each column width.

The height of your slider background image will be determined by the content of the slider, so you may need to adjust the height of your background image.

The following image dimensions follow the 16:9 aspect ratio standard:

1 column: 1080 x 608
¾ column: 795 x 447
⅔ column: 700 x 394
½ column: 510 x 287
⅓ column: 320 x 181
¼ column: 225 x 128

The following image dimensions follow the 4:3 aspect ratio standard:

1 column: 1080 x 810
¾ column: 795 x 597
⅔ column: 700 x 526
½ column: 510 x 384
⅓ column: 320 x 241
¼ column: 225 x 170

And if you want the slider to span the width of columns on mobile devices use these guidelines:

For 4:3 aspect ratio:

1 column: 1080 x 810
⅔ column: 770 x 578
¾ column: 770 x 578
½ column: 770 x 578
⅓ column: 770 x 578
¼ column: 370 x 278

For 16:9 aspect ratio:

1 column: 1080 x 608
⅔ column: 770 x 433
¾ column: 770 x 433
½ column: 770 x 433
⅓ column: 770 x 433
¼ column: 370 x 208

Fullwidth Slider Background Images

Recommended minimum width: 1920px

The width of your fullwidth slider background image is always determined by the browser width. Based on standard screen sizes we recommend that your images are at least 1280px wide. But for larger monitors, a safer bet would be to use an image that is 1920px wide.

Again, with sliders, the height is always determined by the amount of content, so you may need to adjust the height to fit your needs.

Slider and Post Slider Featured Image

Slide featured images will only appear in sliders that are in ⅔ column, ¾ column, or 1 column widths. We recommend that your slide images are at least this wide in order to adjust for desktop and mobile devices.

1 column: 450
¾ column: 330
⅔ column: 320

Note: A browser width that is less than 768px will hide the image and just show the post excerpt.

Images in Lightbox Displays

If you are using the lightbox feature with your image, you may want to use a larger image. Usually 1500 x 844 works well for a good full screen image in lightbox display for large monitors.

Audio Module Cover Art Image

Width: at least 780px

Even though the image starts out small (230 x 130), it spans the full width of the content section on screen sizes less than 780px.

Blog Module Featured Images with Fullwidth Layout

Image width: equal to the size of its column width

Adding featured images to your posts to be displayed using the Blog Module is pretty straightforward. The featured images should be as wide as the column it sits in. For example, if you are using a blog module in a two-thirds column with a right sidebar, you would need to use a featured image at least 700px width since that is the width of a two-thirds column in Divi.

Don’t forget that the featured image will also be used on your single post template (the page that displays your full post after you click on the post excerpt). So, make sure your singe page template is also using a two-thirds column to display your featured image.

1 column: 1080
¾ column: 795
⅔ column: 700
½ column: 510
⅓ column: 320
¼ column: 225

Blog Module Featured Images with Grid Layout

Width: Equal to the size of the single post column width (default 795px)

And, just like with the Blog Module Fullwidth layout, the featured image needs to be large for your single post display. What is great about the Blog Grid layout is that Divi uses a smaller version of the featured image uploaded to the media gallery (with a width of 400px). Since this smaller image is created and displayed automatically, there is no need to worry about your page loading an image file size that is too big for the grid column.

Porfolio Module Featured Images (Fullwidth and Grid Layout; Standard and Filterable)

Width: equal to your single post column width (default: 795px)

When you click to view your portfolio item from the grid layout, the featured image will span the width of the content section. Just like for the Blog Module,

Just like for the Blog Module, Divi creates a smaller version (400px wide) of the portfolio featured image to be used for the Portfolio Module grid layout. This is helpful for reducing file size and keeping your page load time down. So, when creating a new portfolio item, it is important that your featured image be at least as wide as the column of your single portfolio post template.

Blurb Module Image

Maximum width: 550px

The blurb image follows the same rule of matching image width with column width, with the exception of the 1 column, which has a max width of 550px instead of the normal 1080px. Therefore, a safe bet would be to insert images with a max width of 550px. Here are the image widths for the Blurb Module in each column layout.

1 column: 550px
½ column: 510px
⅓ column: 320px
¼ column: 225px

Gallery Module Images (Slider and Grid Layout)

Recommended dimensions: 1500 x 844

Since the gallery module images open in a lightbox display, I recommend using an image that is big enough to fill the browser window when viewing the image in lightbox (somewhere around 1500px wide for large monitors).

For the grid layout, Divi creates a smaller version (400px wide) of the gallery. So, the large image file size reserved for lightbox won’t be displayed on the gallery grid. This is helpful for reducing file size and keeping your page load time down.

For the slider display, it is important to try and keep all of your images the same width and height since the height of the images will change as you go through the slides.

Person Module Image

Recommended Dimensions

Width: 600px

For the person module, it’s time to introduce the aspect ratio 3:4 which is a great size for portraits. Here are the recommended person module image sizes for each aspect ratio:

3:4 – 600 x 800 (recommended for portraits)
16:9 – 600 x 338
4:3 – 600 x 400

Responsive Functionality

A person module image on a 1 column layout will be displayed on the left side of the content at 320px.

When the screen size is less than 767px the image spans the width of the content area at a max width of 600px.

The following gif shows the person module using a 600 x 800 image (using the 3:4 aspect ratio) on different screen sizes.

Post Title Module Featured Image

Width: equal to the column width

The Post Title Module displays the title of your current post, and optionally the post Featured Image. You can choose the placement of your featured image to be above the title, below the title, or as a background of the title. Whatever your selection, the image will still span the width of the content section. So if you are using a 1 column layout for your Post Title Module, 1080px width is ideal for your featured image.

Shop Module Product Images

Recommendations

Recommended width: 330px
Recommended number of columns: 3 or more

The shop module allows you to display your products in a one column layout all the way up to a six column layout. Here are the widths of the product images when displayed on each column layout:

6 column: 150px
5 column: 183px
4 column: 240px
3 column: 332px
2 column: 520px
1 column: 1080px

Functionality

Divi generates a smaller version of the product image (with a max width of 400px) because the Shop Module was really built to show products on ⅓ column or smaller. This means that your 2 column and 1 column layout may show a blurry version of your product image.

Also, once you click on a product in the shop module, the single product page displays your product image at 300px.

To accommodate for a 3 column layout and the single product page, I recommend sticking with a product image size at least 330px wide.

Testimonial Portrait Images

Image size based on module settings

By default, Divi converts your portrait image to a 90 x 90 size and a 90 border width displaying it as a circle. So if you are keeping the default settings, I would recommend your image dimensions be exactly 90 x 90. You can get away with having really large images without a 1:1 aspect ratio but this will be a lot of wasted file size that will slow down your page load time.

You can customize the dimensions and border radius of the portrait image from within the Advanced setting of the Testimonial Module.

When changing these settings, make sure that you keep the width and height the same and the border radius at 100 if you want to keep the circled images looking good.

General Guidelines for Background Images

When using a background image for your module, the background image will always need to be at least as wide as the column in which it sits. Simply follow the guidelines for Divi’s column widths:

1 column: 1080
¾ column: 795
⅔ column: 700
½ column: 510
⅓ column: 320
¼ column: 225

Here are some modules that need background images to match width of its column:

Portfolio Module
Filterable Portfolio Module
Call to Action Module
Post Slider Module
Post Title Module
Slider Module
Text Module

General Guidelines for Fullwidth Background Images

If using a fullwidth section background image, these images will expand to the full width of your browser. That means you should make these images at least as wide as most larger monitor displays which is around 1920px.

The following modules would require a 1920px width background image:

Fullwidth Header
Fullwidth Portfolio
Fullwidth Slider
Fullwidth Post Title
Fullwidth Post Slider
Fullwidth Image

Also, it is important to note that for all of these modules, the height of the background image is determined by the amount of content within the module so you may need to adjust the height of your images as needed.

Fullwidth Header Module

Fullscreen Background Images

Not to be confused with fullwidth background images, the fullscreen background image refers to the setting on your Fullwidth Header Module that allows your header to span the full size (both width and height) of your browser window.

Since most monitors follow the 4:3 and 16:9 aspect ration and will only be 1280px or 1920px wide I recommend the following dimensions for fullscreen background images:

4:3 – 1280 x 960 (recommended for portraits)
16:9 – 1920 x 1080

Fullwidth Header Module Logo Image

The fullwidth header module allows you to place a logo inside the header content area.

There are no standard image sizes for logos. As a general guideline, I would suggest keeping the logo large enough to see clearly on large desktops but small enough to fit smaller devices like smartphones.

Divi’s theme logo is 93 x 43 which gives you a good idea.

Fullwidth Header Image

Recommended dimensions: 510 x 288

In addition to a logo, the fullwidth header module allows a header image to be displayed in the header content area. By default, the header image will be displayed on the right column of a 2 column layout. Since the image sits in a ½ column, a 510 x 288 image makes the best sense for most situations.

Changing the Text & Logo Orientation option in the Module’s General Settings will allow the header image to be displayed on the left column or centered if you prefer that setup.

You can also adjust the vertical alignment to bottom, if you want your image to hug the bottom of the header.

Final Thoughts

As I mentioned before, there is no one perfect standard image dimension for all websites and screen sizes. However, understanding the Divi column layout and how each module displays certain images will allow you to create dimensions that work perfectly for your Divi site.

I hope this serves as a helpful resource for your future projects. I look forward to reading your feedback in the comments.

Cheers!


Knowledge Base Article #2

Coming Soon.


and this