How to Set the Height of a Divi Slider Module

|

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:

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin

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