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. We have just switched to Divi, via Wordpress Edublogs. So, we are just getting the feel of the place, such as the enormous real estate taken by the sliders. Does this code work across all types of Divi sliders? For example, the post slider?

    Reply
    • Hi CroninJJ, the current version of the code in the post (just updated) will work on standard and fullwidth post sliders, as well as standard and fullwidth sliders.

      Reply
  2. Hi
    I think this info is important to know.
    WHERE you must put the CSS

    Add the following CSS into your ePanel or child theme.

    Reply
  3. Lifesaver info here, Dan! Thank you very much!

    Reply
  4. Hi Dan,
    I've got two sliders on my home page one with images set at 500px high using your plugin. The second one I'm using for scrolling testimonials.
    The text is in the heading field and the signature in the button text field. It works ok. The only problem is I would like to make the second one less high. I have used your CSS solution but there's nothing happening. I have tried including and excluding the first line of code "@media only screen and ( min-width:981px )" I presume I should include it. Using Firefoxs' page inspector I can see the css id has been changed to "testimonial_slider". Any ideas?

    Reply
    • Hi Paul, I've just released an update to Divi Booster (v2.6.4) which adds a height option to every slider. This would allow you to handle a case such as this by setting a different slider height in each of the two sliders. Please see the post above for details.

      Reply
  5. I am working on a development site. How do I change the height of a particular slider to on a specific page?

    I dont want to change the home page sliders, just the sub page ones. I would like a banner style slider full width 1200px and height 250px.

    I have tried the CSS above but cant get it to work thanks.

    Reply
    • Hi Jason, I've updated the post above with new details on how to set the height of particular sliders. Thanks.

      Reply
  6. Hi, thanks for the slider css, saved me time for sure.

    One thing I notice: It seems to only apply to largish browser windows. When I shrink the browser window, divi chops off much from the top and bottom of my images, and stretches them (I think) width-wise (just as it did with the larger browser by default). Is there a simple fix here? Something to do with media queries I imagine (I am no designer)?

    Reply
    • Hi Chris, I've updated the post with details on how to use media queries to set different heights for different browser widths.

      Reply
  7. I bought divi boosted and im sure it will be usefull – but adjusting the height of my slideshow didn't help it scale properly in the browser window – the Divi slideshow is not very good. I'm new to Divi but after hours of trying to use it ive given up and am going to use another slider.

    Reply
    • I've just released an update to Divi Booster (2.4.6) which improves scaling in the browser window by allowing you to set a different height for phones / tablets. Please see the post above for details.

      Reply
  8. Hey Dan, you mentioned several times here that you're working at providing the possibilty to adjust the slider height on mobiles also.

    How are you getting on with that?

    The narrow default slider on mobiles really doesn't work when you have defined a nice taller ratio for desktop size monitors, because then all the images chosen for that taller ratio look really over-cropped on the narrow default slider on mobile screens.

    Please let me know, thanks

    Reply
    • Hi Daniel, I've finally been able to do it. Please see the post above for details. Thanks!

      Reply
  9. I changed the default slider height using your Divi Booster but it still resizes to the default divi image ratio when I go down to mobile. Does this really not work? Am I just doing it wrong? Kinda makes this feature useless in my opinion if it doesn't work for mobile.

    Reply
    • Hi Zeke, the original feature only applied on desktops, and defaulted to the standard widths on mobile. I've just released an update to Divi Booster (v2.6.4) which adds the option to control the height on a per-slider basis and to set different heights for desktop, mobile and tablet. Please see the post above for details.

      Reply
  10. Hi Any chance of getting a fully responsive slider snipet codes?

    Reply
    • Hi David, I've updated the post above with CSS for responsive slider heights (i.e. it lets you set a different height on each of desktop, tablet and mobile).

      Reply
  11. Used your code to adjust the height of the slider and it works, however it broke the mobile version. What is the code that needs to be added to restore that functionality?

    Reply
    • Hi Louis, the original version of the code only applied on desktops, leaving the mobile version to use the default Divi height. I've just updated the post with an improved version of the code which includes the option to set the height separately on mobiles.

      Reply
    • I'm afraid not, but I'm happy to refund if you decide it isn't for you.

      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