How to Set the Height of a Divi Slider Module

Written by Dan Mossop

The Divi Slider Module lets you easily add image sliders on your website. In this post, we will walk you through the steps to set the height of a Divi Slider Module.

Setting the slider height in the module settings

Start by editing the page where the Divi Slider Module is located. Locate the Slider Module and click on the module settings to access the customization options.

In the module settings, navigate to the Design tab. Here you will find several styling options for the slider. Look for the "Sizing" heading and click on it to open the slider width and height options.

You should now see settings for the "Min Height", "Height" and "Max Height" where you can enter the desired height value(s). You can specify the height in pixels (px) or any other supported unit (e.g., em). Experiment with different values to achieve the desired height for your slider.

Setting a different height for the slider on mobile / tablets

To make your Divi slider responsive and set the slider height on mobile:

  1. Go to: Slider Settings > Design > Sizing > Height
  2. Click on the "Mobile options" icon – this should bring up tabs for "Desktop", "Tablet" and "Phone"
  3. Click on the "Phone" tab
  4. Enter the height you want the slider to display on mobile devices.
  5. Save the Slider settings.

The location of the setting is shown here:

Enhance Your Divi Experience with Dynamic Content!

Boost your Divi site’s customization capabilities with the Divi Dynamic Content Extended plugin. As you refine elements like the slider height using responsive settings, unlock the power of dynamic content across additional module fields.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

211 Comments

  1. I've tried using the code, and the plugin to accomplish this. It works, however, when a window is resized (either by zooming in/out or actually resizing the window), the slider text vertical alignment changes.

    Reply
    • Hi Jessica, I've just released a new feature which allows you to change the slider height and handles the vertical alignment changes correctly on zooming, etc. Please see the post above details. Thanks!

      Reply
  2. I see from previous comments that you were going to be adding functionality to enable controlling slide height on mobile devices as well. I was wondering if you'd done that or had instructions for doing it. I've been able to use DIVI Booster to do it on the desktop but still have narrow sliders on mobile devices.
    Thanks!

    Reply
    • Hi Chris, it's been a long time coming, but I've finally added the ability to control slider heights on mobile devices. Please see the post above for details. Thanks!

      Reply
  3. Hi Dan,

    Reposting as my previous posts seemed to have been deleted….

    Just trying to set the height on a specific slider (for a coming soon landing page). I have the slider css ID set (cs_slider) and copied/pasted the code under the manual instructions, changing height, amended the default et_pb_slider to cs_slider and placed this code in the CSS section at the bottom of the general page (accessed via DIVI >> Theme Options >> General Tab and CSS field at the bottom of this page).

    No joy though…

    http://www.romantictuscanyweddings.com/

    Any pointers?

    Thanks

    Paul

    Update:

    Just to get it working now I have set the height in the divi booster settings, and it is better, but I still want to just have the height set on this specific page so I can have different heights for other sliders…

    Reply
    • Hi Paul, I've just released a new slider height feature which lets you set the height on individual sliders (and set different heights for desktop, mobile and tablets). Please see the post above for details. Thanks!

      Reply
  4. Works perfect! Thank you for this great guide.

    Reply
  5. Hi Dan,

    Just trying to set the height on a specific slider (for a coming soon landing page). I have given the slider a (cs_slider) and copied/pasted the code under the manually changing height, amended the default et_pb_slider to cs_slider and placed this code in the CSS section at the bottom of the general page (accessed via DIVI >> Theme Options >> General Tab and CSS field at the bottom of this page).

    No joy though…

    http://www.romantictuscanyweddings.com/

    Any pointers?

    Thanks

    Paul

    Reply
    • Hi,

      Just t get it working now I have set the height in the divi booster settings, and it is better, but I still want to just have the height set of this specific page so I can have different heights for other sliders…

      Regards

      Paul

      Reply
      • Hi Paul, I've just released a new slider height feature which lets you set the height on individual sliders (and set different heights for desktop, mobile and tablets). Please see the post above for details. Thanks!

        Reply
  6. Just bought Divi Booster and my slider is still short. :(

    Reply
    • I gots it!

      Reply
      • :)

        Reply
  7. I have installed the Divi Booster plugin and have set the slider height to 1000 pixel. Works perfectly fine on computer screen. But on mobile devices I would need to adjust… how can I do so?

    Reply
    • Hi Tania, I've just released a new slider height feature which adds the ability to control the slider height on mobiles and on individual sliders. Please see the post above for details.

      Reply
    • Hi Kimberly, I've just released an update to the post above with details how to set the slider height in mobile view.

      Reply
  8. Thanks

    Reply
  9. doesn't work for mobile and tablet

    Reply
    • Hi dave, I've just released an updated version of the code / feature which allows you to control the slider heights on mobile and tablet. Please see the post above for details.

      Reply
  10. Thanks! Works perfectly :)

    Reply
  11. Thanks for the tip. Looks great when on desktop but gets really small on mobile. Any idea why?

    Reply
    • Hi Ikaika, the original version of the tip only adjusted the height on desktop, leaving the default Divi sizing on mobiles. I've just updated the tip to apply to mobiles as well. Please see the post above for details.

      Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

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

We may earn a commission when you visit links on our website.

Latest From Divi Booster

How to Add the Post Status in Divi's Dynamic Content

Divi's Dynamic Content feature is great for enhancing your post/page templates with post-specific information. While Divi includes an option to show information such as the Post Created Date using Dynamic Content, there is no equivalent option for the Post Status....

Fix Divi Text Module "Regular" Font Weight Not Working

Are you encountering an issue where the font weights in Divi's Text Module don't seem to apply as expected? In particular, you might find that when you set the text module's body text font weight to "Regular", your font is actually assigned a weight of 500 instead of...

Make the Divi Gallery Module Swipeable

The Divi Gallery Module comes with a slider mode that lets you display images in a slider with clickable left/right arrows to scroll through the images. For mobile / touchscreen users, you can improve the user experience by allowing your user to swipe to navigate to...

How to Use Divi Dynamic Content in Woo Modules Product Selector

Divi's Dynamic Content is a powerful feature that lets you populate your Divi modules and theme builder templates with data pulled in various sources, such as custom fields. This allows for efficient organization and maintenance of your sites.Unfortunately, Divi's...

Random Divi Posts