• Resolved dammsugare

    (@dammsugare)


    Hello,
    I was just wondering if the mobile slider only shows up on cell phnes or also on tablets.
    Also, I would like to know how I can add a fallback image for the logo.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mobile shows only on phones, or basically screens smaller then 767px.

    What do you mean by a fallback image?

    Kadence Themes

    Thread Starter dammsugare

    (@dammsugare)

    Hey Kadence,
    by fallback I mean an alternative if the browser doesn’t support svg. I have a detailed logo that I would like to use and png or jpg just doesn’t worked when resized, so I would like to use a vector but have a fallback in case the browser won’t load it.

    There isn’t a built in option for this. You would need to use a child theme and edit the header template. That or repurpose the retina logo image to change based on browser support.

    Kadence Themes

    Thread Starter dammsugare

    (@dammsugare)

    I know there isn’t a built in option, I thought maybe there is a way with css, like this

    .logo {
        background: url('img/logo.png');
        background-image: url('img/logo.svg'), none;
    }

    Would this work somehow?

    No, not like that. The logo is added as an image not as a background so if you added something like that you would need to add a blank transparent image (same exact size as your logo) into the theme options for the logo then you could use css like that to se the background for the blank logo image. So would be more like this:

    .logo img {
        background: url('img/logo.png');
        background-image: url('img/logo.svg'), none;
    background-size: cover;
    }

    Kadence Themes

    Thread Starter dammsugare

    (@dammsugare)

    Thank you very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Mobile slider/alternative image fallbacks’ is closed to new replies.