Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1133535

    Hi,

    How do I get my Fullscreen slider Mobile Fallback image to be scale to fit on my homepage?

    #1134819

    Hey 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,
    Vinay

    #1135072

    Hi Vinay,

    I added the code but the mobile picture is not scale to fit on my homepage for mobile.

    #1135079

    Hi,

    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 Shannon

    #1135090

    Yes, I did Jordan. It shows the images stretch to fit.

    #1135152

    Hi,

    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 Shannon

    #1135169

    The code makes the image the correct size but makes other elements overlap on every page and creates several issues on all of my pages.

    #1135455

    Hi 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,
    Nikko

    #1136181

    Hi 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.

    #1136556

    Hi 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.