-
AuthorPosts
-
September 3, 2019 at 8:26 pm #1133535
Hi,
How do I get my Fullscreen slider Mobile Fallback image to be scale to fit on my homepage?
September 6, 2019 at 9:04 am #1134819Hey goldiejake123,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:
CSS Snippet:
/* CSS - */ #top #fullscreen_slider_1 .av-element-cover.av-mobile-fallback-image { /* background-size: cover !important; */ background-position: 25% 0; }
Best regards,
VinaySeptember 6, 2019 at 6:52 pm #1135072Hi Vinay,
I added the code but the mobile picture is not scale to fit on my homepage for mobile.
September 6, 2019 at 6:59 pm #1135079Hi,
Did you add the code to the very top of quick css so it runs first? Also clear the cache a few times over.
Best regards,
Jordan ShannonSeptember 6, 2019 at 7:18 pm #1135090Yes, I did Jordan. It shows the images stretch to fit.
September 7, 2019 at 12:03 am #1135152Hi,
Try the following in quick css:
@media only screen and (max-width: 767px) { .avia-slideshow-inner { height:50%!important; } .slideshow_align_caption{ vertical-align:top!important; padding-top:25px!important; } #services{ margin-top:-350px!important; } }
Best regards,
Jordan ShannonSeptember 7, 2019 at 12:41 am #1135169The code makes the image the correct size but makes other elements overlap on every page and creates several issues on all of my pages.
September 7, 2019 at 6:28 pm #1135455Hi goldiejake123,
If you need to apply this only for a specific page, for example if it’s homepage you can use this code isntead:
@media only screen and (max-width: 767px) { .home .avia-slideshow-inner { height: 50% !important; } .home .slideshow_align_caption{ vertical-align: top !important; padding-top: 25px !important; } .home #services{ margin-top:-350px!important; } }
If it’s other pages, you can replace .home with .page-ID, where ID is the page id number of that said page.
Hope this helps.Best regards,
NikkoSeptember 9, 2019 at 7:17 pm #1136181Hi Nikko, The code provided still creates spacing errors on the home page. It creates negative margins and overlaps. The code does make the image fit but on top of it creates errors.
September 10, 2019 at 2:39 pm #1136556Hi goldiejake123,
I see, can you try to use this code instead:
@media only screen and (max-width: 767px) { .home #fullscreen_slider_1, .home #fullscreen_slider_1 * { max-height: 320px; } }
Hope it helps.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.