Skip to content

Instantly share code, notes, and snippets.

@kabbo508
Created January 27, 2018 12:01
Show Gist options
  • Save kabbo508/e7768e2d8612dba1b235ce429f0e8cad to your computer and use it in GitHub Desktop.
Save kabbo508/e7768e2d8612dba1b235ce429f0e8cad to your computer and use it in GitHub Desktop.
Write it theme option or child theme style.css file
/* === Begin: Set the divi slider height === */
/* Src: https://divibooster.com/changing-the-height-of-the-divi-slider/ */
/* Desktop */
.myslider .et_pb_slide .et_pb_container {
height: auto !important;
min-height: 500px !important;
}
/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 980px) {
.myslider .et_pb_slide .et_pb_container {
height: auto !important;
min-height: 500px !important;
}
}
/* Phone */
@media only screen and (max-width: 767px) {
.myslider .et_pb_slide .et_pb_container {
height: auto !important;
min-height: 500px !important;
}
}
/* Handle padding */
.myslider .et_pb_slide {
padding-bottom: 0px !important;
}
.myslider div.et_pb_slide_description,
.myslider .et_pb_slider_fullwidth_off div.et_pb_slide_description {
padding-top: 1%;
padding-bottom: 1%;
}
/* === End: Set divi slider height === */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment