Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #581318

    I read and was able to implement what I found on the following thread (to overlay an image on the fullscreen slider)…
    https://kriesi.at/support/topic/add-an-overlay-on-fullscreen-slider/

    … however, I’m having trouble making the image responsive (I want the logo to be much smaller in all layouts (Mobile portrait (320×480), Mobile landscape (480×320), Small tablet portrait (600×800), Small tablet landscape (800×600), Tablet portrait (768×1024) and Tablet landscape (1024×768)).

    I also note that the fullscreen slider image itself is not responsive and wonder why this isor what I can do to remedy it?

    Thanks!

    #582609

    Hi lzevon,

    Sorry for the late reply, what code did you use? Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Thanks,
    Rikard

    #583863

    You bet…

    Thx,
    Larry

    #585021

    bump – Rikard?

    #586633

    Hi!

    Sorry for the delay. Set the image as background:

    .page-id-16 .avia-fullscreen-slider:after {
        content: '';
        display: block;
        z-index: 100000;
        position: absolute;
        height: 150px;
        width: 150px;
        background: url(/wp-content/uploads/2016/02/home-logo.png);
        background-size: 100%;
    }

    Use css media queries to adjust the size of the container on smaller screens.

    Regards,
    Ismael

    #587292

    That works for the logo – thank you! For the background image, on vertical images the slider is not responsive. It is cutting off the children’s faces in the most awkward of places as you can see from the attached.

    The horizontal/landscape layouts appear to work well, but the vertical/portrait layouts are getting cut off?

    Thanks

    #588126

    Hi!

    Since the background size property is set to cover, the background will cover the whole container but it will cut off parts of the images to keep its aspect ratio. The only workaround is to create another slider specifically made for mobile or adjust the background positioning by using css.

    @media only screen and (max-width: 989px) {
    .avia-fullscreen-slider .avia-slideshow>ul>li {
        background-position: center center !important;
    }
    }

    Best regards,
    Ismael

    #588525

    Perfect Ismael – thank you!

    #589723

    Hi!

    glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,
    Andy

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Overlay responsive image on fullscreen slider’ is closed to new replies.