Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1151947

    Hi,
    i have one issue with the page i pasted in private content.
    I designed version 1 with color section and paralax image of the guy in the background (show only on big screens > 990px) and version 2 with a black color section and image above (show on tablet and mobile screens < 990px).

    Issue:
    If my client use his iPad Pro 9,7” in portrait mode version 2 will be displayed.
    If he turns his iPad to landscape mode, it switches to version 1.

    Question:
    How can i fix this issue / define own breakingpoints for all four devices?

    #1152324

    Hey NMDKDesign,

    It can be fixed through media queries.
    Try adding this css code in Quick CSS, located in Enfold > General Styling:

    @media only screen and (min-width: 1024px) and (-webkit-min-device-pixel-ratio: 2)  and (orientation: landscape) {
        .responsive.av-no-preview #top #wrap_all #ueber.av-desktop-hide {
            display:none;
        }
    }
    
    @media only screen and (min-width: 768px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2)  and (orientation: portrait) {
        .responsive.av-no-preview #top #wrap_all #ueber.av-medium-hide {
            display:none;
        }	
    }

    Hope it helps.

    Best regards,
    Nikko

    #1152398

    Hello Nikko,

    that didn´t affect the behaviour.
    If i´m turning my iPad to landscape mode, it still switches image.

    #1152411

    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

    #1152420

    Hi Jordan,
    yes added the code on top and cleared the cache a few times.
    Nothing changed.

    Regards

    #1153089

    Hi Guys,
    i´m still having this issue.
    Any further ideas?

    #1153238

    Hi NMDKDesign,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1153241

    Hi Victoria,

    of course!

    Best regards

    #1153999

    Hi Victoria,

    any news?

    Best regards

    #1154325

    Hi NMDKDesign,

    Thank you.

    Can you disable caching and minification for now?

    Best regards,
    Victoria

    #1154588

    Hi Victoria,

    of course! I deactivated both plugins (Autoptimize and W3 Total Cache).

    Best Regards

    #1155415

    Hi,
    Sorry for the late reply, thanks for the login, first I recommend not using the built-in screen options for your situation, and I noticed that both of your sections have the same ID, so I changed this for you to reduce conflicts.
    Now the reported media queries for the iPad Pro 9.7 is 768px Portrait, and 1024px Landscape, and you want this device to see the same image both ways, so your first media query for smallest devices will go up to 1030px, to give us a little wiggle room, and then anything over 1031px will see the second image for desktops.

    @media only screen and (max-width: 1030px) { 
     #top #wrap_all #ueber-desktop {
            display:none !important; 
        }
    }
    @media only screen and (min-width: 1031px) { 
      #top #wrap_all #ueber-mobile  {
            display:none !important; 
        }	
    }
    

    I have applied this for you and tested by emulating a tablet on my desktop, please clear your browser cache and check.
    Please note that my understanding is that iPads are harder to clear the cache, so please try a couple of times.

    Best regards,
    Mike

    #1157023

    Hi Mike,
    thank you so much. That worked.
    But now backend is showing me a wrong revision and frontend is showing me the right one.
    I cleaned cache several time but it did not fix the issue. Any suggestions?

    Image Backend (1/5)

    Image Frontend (1/3)

    Thanks in advance

    #1157521

    Hi,
    Glad to hear that is working for you, as for your other element, the one with 1/5 columns is set to hide for all screens
    2019-11-16-122807
    and the one that is showing with 1/3 columns is set to show for all screens
    2019-11-16-122838
    please try adjusting to suit.

    Best regards,
    Mike

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