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. Is it possible to do this for a post slider, too? I'd like my post slider to be skinnier (less tall). There isn't an option in the Divi Booster plug-in for this. Thanks!

    Reply
    • Hi Sapna, as you discovered, this code works on the post slider too. In Divi Booster, just use the option under "Modules > Slider".

      Reply
  2. it is soo strange, the above code sometimes working sometimes refuse to work and the height remain in a stadar size. I have 3 websites. In the first it worked fine. in the second fine now i copy paste the code and change the css id is not working. whatever i do the height remain the same. Maybe there is something going on with the newer version of divi?

    Reply
    • nevermind i found the solution, it seems that this is not working in the child theme css style but need to be in the divi epanel css.

      Reply
      • I'm glad you got it working Phillip. In theory it should work the same in both the child theme and epanel css, so I'm not sure why it wasn't working for you… One possibility is that there is some malformed CSS earlier in the child theme which was preventing this CSS from being applied.

        Reply
  3. Dan, any idea on when you may release the slider height for mobile or has this been released?

    Reply
    • Hi Eric, I've just released an update that lets you set the slider height on mobiles. Please see the post above for all the details.

      Reply
  4. Hola Dan,

    By any chance is there any update to Divi Booster or CSS to fix the issue of the full-width slider being non-responsive for mobile? I used your code to fix the issue on a single page for the full width slider (thanks!), but now would love to have my images be fully seen when viewing on mobile.

    Thanks so much!

    Reply
    • Hi Kristen, I've just updated both Divi Booster and the CSS to allow the full-width slider to be responsive on mobiles. Please see the post above for details. Thanks!

      Reply
  5. Hey Dan,

    Can you provide the style classes to use to set a height for mobile and tablet browsers?

    Reply
    • Hi Edward, I've just updated the post to include a new CSS snippet. It lets you set the height on mobiles and tablets, and makes some other improvements as well.

      Reply
  6. Any idea when you will get this to work on mobile? We just created a site with full width video and an image to use in place on mobile. Works fine on desktop, but gets chopped in half on tablet or phone and we want it to be the first thing at top of the home page.
    Thanks,
    Diane

    Reply
    • Hi Diane, I've finally been able to do this. Please see the post above for details of how to set the slider height on mobiles. Thanks!

      Reply
  7. I bought divi booster and I set the height of the slider, but I would like some sliders of different height them, I tried using the method proposed for the single slide but I could not.
    I can not change the height of a single slide in a manner different from the standard. I tried using the proposed method works but not perhaps have done something wrong.

    Reply
    • Hi Rocco, I've just released an update to Divi Booster (v2.6.4) which lets you set different heights for different sliders. Please see the post above for details.

      Reply
  8. I can not change the height of a single slide in a manner different from the standard. I tried using the proposed method works but not perhaps have done something wrong.

    Reply
    • Hi Rocco, I've just released an update which lets you set different heights for different sliders. Please see the post above for details.

      Reply
  9. Really happy with Divi Booster,

    One question, I want to lower (center) the slider titles. You say above:
    "I’ve used “top: 25%” to display the slide titles 1/4 of the way down the slide (so that all slide titles appear in the same place). Increase this if you want the slide titles and descriptions to be moved lower down the slide."

    Where do I increase the 25% in Divi Booster?
    Thanks in advance

    Reply
    • Hi Tony, there wasn't an option to edit this in Divi Booster. I've just released a new and improved slider height feature (as of Divi Booster 2.6.4) which properly handles the vertical alignment of the titles and does away with the need to modify the "top" value. Please see the post above for details. Thanks.

      Reply
  10. Hi- I am using the divi booster to set the height of my slider but I also need to adjust it to a different height on mobile. Can you help me with the code for that? Appreciate it!

    Reply
    • Hi hindy, I've just released an update to Divi Booster (v2.6.4) which lets you control the slider height on individual slider modules and set a different height on mobiles. Please see the post above for details.

      Reply
  11. Hey Dan!

    (I am a newbie WP user)

    How do you manually adjust the height of a fullwidth slider on Divi (in addition to the code that you shared previously for the 'regular' slider?)

    Thanks!

    Vincent

    Reply
    • Hi Vincent, the code in the current version of the post will work both for the regular slider and the fullwidth slider.

      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