Tagged: customize, fullscreen slider
-
AuthorPosts
-
August 9, 2015 at 12:26 am #484869
I’d like to use the Fullscreen slider, but I don’t want it to be “fullscreen.” Ideally, I’d like it to remain full width, but set a custom height of 700px. So far I tried using the following code to achieve this:
.avia-slideshow-inner {
height: 700px !important;
}
.avia-slideshow {
max-height: 700px !important;
}This seems to work well on my desktop, but the width is no longer responsive when I shrink my screen down to tablet or mobile size. I think it remains constant at 700px height…
Is there a better way to set a custom height for the Fullscreen slider yet still allow it to remain responsive? Thank you in advance!
Lora
August 10, 2015 at 10:03 am #485114Hi loraehmke!
Thank you for using Enfold.
You can use css media queries to adjust the height on smaller screens. Example:
@media only screen and (min-width: 1200px) { .avia-slideshow-inner { height: 400px !important; } .avia-slideshow { max-height: 400px !important; } }
Best regards,
IsmaelSeptember 5, 2015 at 11:02 pm #498747That makes sense but bear with me; I’m new at this.
I’ve been playing around with adding media queries, and it now seems to resize OK with my browser and looks good on my iPad. However, it doesn’t work well on my iPhone. Also, is there a way to make the buttons and background images responsive? On my iPhone, the buttons are big and the background image doesn’t resize.
Here is the code I added. Perhaps you have some suggestions to make the responsiveness better? I basically want the Slider to be 700px on a regular screen and then re-size smaller as the screen shrinks…perhaps I should try using a %?
@media only screen and (min-width: 200px) {
.avia-slideshow-inner {
height: 400px !important;
}
.avia-slideshow {
max-height: 400px !important;
}
}
@media only screen and (min-width: 400px) {
.avia-slideshow-inner {
height: 400px !important;
}
.avia-slideshow {
max-height: 400px !important;
}
}
@media only screen and (min-width: 800px) {
.avia-slideshow-inner {
height: 700px !important;
}
.avia-slideshow {
max-height: 700px !important;
}
}
@media only screen and (min-width: 1000px) {
.avia-slideshow-inner {
height: 700px !important;
}
.avia-slideshow {
max-height: 700px !important;
}
}
@media only screen and (min-width: 1200px) {
.avia-slideshow-inner {
height: 700px !important;
}
.avia-slideshow {
max-height: 700px !important;
}
}Thanks in advance!
September 8, 2015 at 1:24 am #499608Hey!
Try adding this code to the Quick CSS:
@media only screen and (max-width: 480px) { .avia-fullscreen-slider .avia-slideshow>ul>li { background-size: 100% 100%; background-repeat: no-repeat; } }
That will make the slideshow image to stretch the 100% height and width of the slideshow, it will look stretched but perhaps if you reduce the height of the slider (at that screen size) you’ll get the desired result.
Regards,
JosueApril 24, 2020 at 2:15 pm #1206810Hi, this post helps me a lot, thanks
Can I “vertical-align: middle;” the images by adding to this … or would I need to add separate styling?
Thanks in advance
BApril 27, 2020 at 7:59 am #1207443Hi,
You can only use vertical-align for inline elements, so it’s not going to work for the slider images. What are you trying to do exactly? If you don’t mind, please create a new thread and post the necessary details in the private field.
Best regards,
IsmaelAugust 28, 2020 at 5:41 pm #1241661Hi,
I have a similar question how can I have “fullscreen slider” height not 700px but 80%? If I change the 700px for 80% there is a small 20% white space below the image.
Regards
AnandaSeptember 1, 2020 at 5:13 am #1242346Hi Ananda,
Please open a new thread and include WordPress admin login details in private so that we can have a closer look at your site.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.