Tagged: 

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

    Hi
    When i look at my slider on this page: https://www.impactcrescendo.com/releve
    On my iPad vertically:
    1) If I just flipped from the horizontal position, I need to refresh the page to see the caption. It does not show the caption automatically
    2) If I just flipped from the vertical position, I also need to refresh to see the caption.
    3) In viewing the the vertical position, the image displays the person on the left. However, when viewing the page horizontally, the image gets flipped and the man is now on the right

    I have created two sections on my page and created the following CSS code to display or hide one section if on the desktop or a mobile device like this:
    /* alternate Releve slider image for mobile devices */
    @media screen and (max-width: 1024px) {
    .releve-slider-desktop { display: none !important; }
    .releve-slider-mobile { display: block !important; }
    }
    @media screen and (min-width: 1024px) {
    .releve-slider-desktop { display: block !important; }
    .releve-slider-mobile { display: none !important; }
    }

    I don’t understand why the image gets flipped and the screen needs to be refreshed to see the caption.

    Hope you can help resolve this strange issue

    Thanks
    Lyse

    #786862

    Hi
    I realized I have the id entered incorrectly (I had entered a “.” instead of a “#” before), so here’s the revised code:

    /* alternate Releve slider image for mobile devices */
    @media screen and (max-width: 1024px) {
    #releve-slider-desktop { display: none !important; }
    #releve-slider-mobile { display: block !important; }
    }
    @media screen and (min-width: 1024px) {
    #releve-slider-desktop { display: block !important; }
    #releve-slider-mobile { display: none !important; }
    }

    But this change seem to have caused both of these to display now…

    Where did I go wrong?

    Thanks
    Lyse

    #786950

    Hi,

    Please try this instead:

    @media only screen and (min-width: 1024px) {
    #releve-slider-desktop {
      display:block !important;
    }
    #releve-slider-mobile {
      display:none !important;
    }
    }
    
    @media only screen and (max-width: 1023px) {
    #releve-slider-desktop {
      display:none !important;
    }
    #releve-slider-mobile {
      display:block !important;
    }
    }

    Best regards,
    Rikard

    #787163

    Hi RIkard,

    That didn’t change anything.

    Thanks
    Lyse

    #787218

    ….actually the only change is that the mobile image is now at the top and the desktop one is below. So it just flipped these

    #787512

    Hi Rikard,

    Fixed my issue. I added #top in front of the class and it works now.

    I do have one issue and that’s when I flip to horizontal, I have to refresh the page to see the caption. Any ideas on this one?

    My client wants to go live by end of today/night. Any changes to get this issue resolved before?

    Thanks
    Lyse

    #787578

    Hi,

    Please try this css code.

    .avia-caption-content {
        visibility: visible !important;
    }

    You can put it inside the css media query for mobile.

    Best regards,
    Ismael

    #787932

    Hi Ismael,

    This is how I added the suggested code and it does not fix the issue. I still need to refresh to see the caption (only on the ipad)
    @media screen and (max-width: 1024px) {
    #top .releve-slider-desktop { display: none !important; }
    #top .releve-slider-mobile { display: block !important;}
    .avia-caption-content { visibility: visible !important; }
    }
    @media screen and (min-width: 1024px) {
    #top .releve-slider-desktop { display: block !important; }
    #top .releve-slider-mobile { display: block !important;}
    .avia-caption-content { visibility: visible !important; }
    }

    Thanks
    Lyse

    #787996

    Hi Ismael,

    It works! Thank you so much.

    Lyse

    #788197

    Hi Lyse,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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