-
AuthorPosts
-
August 1, 2016 at 4:35 pm #667341
Hi,
I am trying to increase the height of my slider on mobile with the following code but it is not working
/* Fullscreen slider height in portable devices*/
@media only screen and (max-width: 775px) {
.avia-fullscreen-slider .avia-slideshow {
max-height: 65px!important;
}
}Here is my site:
- This topic was modified 8 years, 3 months ago by navindesigns.
August 2, 2016 at 6:37 pm #667785Hey navindesigns,
Height of your slider on smallest screen size is 130px. Can you please elaborate on the changes you would like to make? Would you like to decrease it or increase it? :)
Best regards,
YigitAugust 2, 2016 at 7:25 pm #667800Is it really 130px on mobile?
This is what I am seeing
https://s32.postimg.org/rpf88v6v9/Screen_Shot_2016_08_02_at_1_30_08_PM.pngAugust 2, 2016 at 8:09 pm #667806August 2, 2016 at 8:18 pm #667809ok
how do I make it taller
i added this code
/* Fullscreen slider height in portable devices*/
@media only screen and (max-width: 775px) {
.avia-fullscreen-slider .avia-slideshow {
max-height: 65px!important;
}
}should i remove that?
August 2, 2016 at 9:22 pm #667841Hi!
Based on what you want to add ( 65px ) it is smaller from 130, that is why it is not working.
Can you please elaborate, like Yigit asked?
Regards,
BasilisAugust 2, 2016 at 9:31 pm #667844I just changed it to 265px but the height is not changing on mobile
/* Fullscreen slider height in portable devices*/
@media only screen and (max-width: 775px) {
.avia-fullscreen-slider .avia-slideshow {
max-height: 265px!important;
}
}August 3, 2016 at 3:00 pm #668068Hi,
Please change your code to following one
@media only screen and (max-width: 775px) { ul.avia-slideshow-inner { height: 265px!important; }}
Best regards,
YigitAugust 3, 2016 at 3:56 pm #668104That only made the area taller, now I see white space below the slider
August 3, 2016 at 4:04 pm #668114Hey!
That is expected. It would not be possible to increase the height without stretching the image and in my opinion that would look ugly. You can refer to this post – http://kriesi.at/documentation/enfold/hide-menu-itemselements-on-mobile/ and replace your element with another slider with different ratio. In that case, you would not need to use custom CSS as well
Regards,
YigitAugust 3, 2016 at 4:21 pm #668134How is this site site doing it? I want to match it like that site
August 5, 2016 at 3:52 pm #669018let me know if this makes sense?
August 8, 2016 at 2:31 pm #669825Hi,
That site is using Fullscreen slider. You can try using fullscreen slider as well or refer to my previous post and display a different slider on mobile
Best regards,
YigitAugust 8, 2016 at 4:36 pm #669909Thanks
I just switched it to fullscreen slider and added the code and it worked but the only issue now is that the on mobile the left part of the image is being shown and not the center. I think on this site (http://1c5.964.myftpupload.com/) the slide is centered so you see the center of the image
my site – http://staging.wsmsnyc.org.s167849.gridserver.com/
August 11, 2016 at 5:01 pm #671436Hi,
use this code inside Quick CSS field:
@media only screen and (max-width: 767px) { li.av-single-slide.slide-1.active-slide { background-position: -220px 0px !important; }}
and adjust as needed.
Best regards,
AndyAugust 11, 2016 at 5:35 pm #671465If its not too diffcult, can you just tell me whats the code this site is using? I want it exackly like this.
2 things – make slide taller on mobile and center slide on mobile
August 12, 2016 at 6:53 pm #672002Hi,
the site is using this code:
.avia-fullscreen-slider .avia-slideshow>ul>li { background-position: center center !important; background-size: cover; }
Best regards,
AndyAugust 13, 2016 at 5:05 pm #672286Ok I think I got it to work but there seems to be a small “jump” in the slider to center the image when the site loads on my iphone 6
The “jump” is present when I scroll the page in iphone 6 as well
- This reply was modified 8 years, 3 months ago by navindesigns.
August 15, 2016 at 2:02 pm #672641Hi,
which jump? I can’t see it. Can you make it visible to us please?
Please update the theme to the latest version. That should fix any issues you are currently experiencing :)To update to the latest version follow the simple instructions here. (Or if you want the super detailed explanation you can read this blog post)
If that does not help, feel free to reply here and we will take a closer look at the issue. In that case please also add your WordPress login credentials (in the “private data” field) so we can take a look at your admin area
Best regards,
AndyAugust 15, 2016 at 2:13 pm #672646Hi,
which jump? I can’t see it. Can you make it visible to us please?
Please update the theme to the latest version. That should fix any issues you are currently experiencing :)To update to the latest version follow the simple instructions here. (Or if you want the super detailed explanation you can read this blog post)
If that does not help, feel free to reply here and we will take a closer look at the issue. In that case please also add your WordPress login credentials (in the “private data” field) so we can take a look at your admin area
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.