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. Works fine but shifts the image description/title up to the top of the page. I'm sure there's a way round this, any suggestions?

    Reply
    • Hi John, I've just updated the code / feature with new code. Among other things it should keep the description / title properly vertically centered. Please see the post above for details.

      Reply
  2. Great code, though, if you want your title centered in the slider, it's better to set "top: 33%;" rather than "top: 25%;". At least, that's what worked for me. Thanks.

    Reply
    • Thanks Walter. I've updated the code so that it keeps the proper centering. This removes the need to set the top percentage (which really needed to be determined on a slide-by-slide basis). Please see the post above for details of the new code / feature. Thanks!

      Reply
  3. this is useless, isn't the whole point of the plugin not to have to deal with css? i want to change the height on a single slider without css!

    Reply
    • Hi Anna, I've updated the plugin to include a feature for setting the height on individual sliders. Please see the post above for details. Thanks.

      Reply
  4. This is great! Thanks. I have been so frustrated with Divi Slider control. One question though, this CSS code affected my website on desktops, but did nothing on mobile devices. Did I miss anything? Also, what if I wanted the height to adjust proportionately to the width as I resized my window? Any way to set a percentage or something instead of an actual fixed pixel size? Thanks for the great help!

    Reply
    • Hi Jack, I've finally added an option to set the height on mobiles. Please see the post above for details. Currently it only works in pixels. I would like it to work as a percentage of the width, but the structure of the slider prevented my various attempts. I'll keep trying though…

      Reply
  5. How can i change the height on mobile device ?

    Reply
    • Hi Herbert, I've just updated the code / feature, adding the ability to set the slider height on mobiles too. Please see the post above for details.

      Reply
  6. Thank you so much.

    Reply
  7. I tried this on the site I'm building. Works great for desktop resolution, but doesn't resize correctly for mobile / tablet (looks like it reverts to original dimensions). Any ideas on how to make that work?

    Reply
    • Hi Brian, yes the original version of the code was only applied on desktops and reverted to the original dimensions on mobile. I've just updated the post above with details on how to adjust the slider height on mobiles / tablets as well. Thanks!

      Reply
  8. Hi Dan, I think I am doing something wrong, but I am trying my best and can't fix the height of my full width sliders using the tools above.

    Kind regards, Tanja

    Reply
    • Hi Tanja, I've updated the code in the post above and this new version is working with fullwidth sliders. Hopefully it might help. Please see the post above for details.

      Reply
  9. Hi,
    Is it also possible to only change the height of the slider on computer but not change it on mobile and tablet?
    Thanks in advance.

    Reply
    • Hi Daniel, I've released an update to the post / feature which gives details on how to change (or not) the height of the slider on mobile / tablets.

      Reply
  10. This setting doesn't appear to work on mobile. Is there a way to force the height on mobile?

    Reply
    • Hi Christopher, I've released an improved version of the setting which lets you force the slider height on mobiles. Please see the post above for details.

      Reply
  11. Were you able to figured out how to make it responsive?

    Reply
    • Hi Jane, finally I've been able to make the Divi sliders responsive. Please see the post above for details.

      Reply
  12. With regards to my last comment – I tried it with the CSS code and instructions above – and it works for the post-slider module, too. Thanks!!

    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 Posts

Set a Custom Start Value in Divi Number Counter Modules

Adjusting the starting value for Number Counter modules in Divi enables you to create more dynamic and tailored animations, such as counters that begin at a specific number rather than the default zero. This can enhance the presentation of statistics or milestones on...

Create a FAQs Accordion Module in Divi

Building an organized and interactive FAQs section on your website can enhance user experience by providing quick answers to common questions in a visually appealing, space-saving format. Displaying FAQs in an accordion allows visitors to easily browse topics and find...

Hide the Page Title in the Hello Elementor Theme

Hiding the page title in the Hello Elementor theme allows you to create a cleaner and more customized page layout, free from default headings that may not fit your design. This is particularly useful for landing pages or custom content layouts where the default page...

How to Hide a Divi Module When Scrolling Up or Down

In this quick tutorial, I’ll show you how to hide a Divi module when scrolling in a specific direction (up or down), so that the module only shows when you want it to. This is especially useful when using Divi’s Scroll Effects feature and you have a effect you want to...

Random Posts