1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved iPad Pro Specific breakpoints

Discussion in 'Basic Support Forum' started by Eric Caldwell, Jul 24, 2019.

  1. Eric Caldwell

    Eric Caldwell New Member
    Divi Block Pro Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    I've bee scouring the forums to come up with a solution that works for iPad pro's breakpoints and below is what I got to somewhat work. The challenge with the iPad pro is it renders like a desktop but, it's a mobile device and a lot of the header designs just do quite work with it.

    Do we need some CSS to detec the iPad pro and render differently? This seems to be another viewport Apple has thrown into the mix making our lives just a bit more difficult.

    @media only screen
    and (min-device-width: 1024px)
    and (max-device-width: 1024px)
    and (orientation: portrait)
    and (-webkit-min-device-pixel-ratio: 2) {
    #main-header, #top-header {
    display: block!important;
    }
    .free-sticky-wrapper {
    display: none!important;
    }
    #page-container {
    padding-top: 79px!important;
    }
    .free-du-plugin-header {
    display: none;
    }
    #main-header, #top-header {
    display: block!important;
    }
    .et_header_style_left #et-top-navigation {padding-left: 330px;}
    }
    </style>
     
    Steven Carr likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Powerful Divi header builder for you to mix & match premade header design, mobile menu & more:Learn More
  2. Eric Caldwell

    Eric Caldwell New Member
    Divi Block Pro Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Update.

    Went with a different approach with the menu by adjusting the max-width and this looks much better but, the iPad Pro is still the orphan in all this and maybe having a third header design (using visibility) is the real only way to handle this?

    <style>

    @media only screen
    and (min-device-width: 1024px)
    and (max-device-width: 1024px)
    and (orientation: portrait)
    and (-webkit-min-device-pixel-ratio: 2) {
    .fullwidth-menu {max-width: 85% !important;}
    }
    </style>

    Screen Shot 2019-07-24 at 8.06.56 AM.png
     
  3. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Kindly share your URL.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  4. Eric Caldwell

    Eric Caldwell New Member
    Divi Block Pro Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    southernfloorcoating.com

    The challenge becomes needing to think about iPad pro or desktops at 1024 width and iPad Pro is a different animal. With the new iPadOS, these same challenges are going to multiply.
     
  5. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Digital Marketing' Divi layout for all Pro members:View Demo
  6. Eric Caldwell

    Eric Caldwell New Member
    Divi Block Pro Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks for the code. The code I made seems to have a different outcome. Attaching screenshot with your code. You can see the earlier attachment and the difference.
    Screen Shot 2019-07-24 at 11.29.22 AM.png
     
  7. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    That's weird. From my side, if I applied those CSS, then it shouldn't break into 2 lines.

    Can you try to clear your cache for me to see it in action?

    Just for your information:
    In addition to the above CSS, you also can reduce the spacing between the menu items with the CSS below:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now
  8. Eric Caldwell

    Eric Caldwell New Member
    Divi Block Pro Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Done, completely disabled any CSS I had and used all your CSS in theme options. You can visit the site now and see what you think?

    A different approach and I think I prefer it. I can add social icons back to the header for iPad Pro.

    Which media query should I use for detecting iPad to hide/show the Social Divi module?

    I think this is going to be something we all have to get on board with. Apple owns the tablet market and the IPPro is here to stay along with iPadOS
     
  9. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    From desktop chrome, I tried to resize & it did not break into 2 lines: https://recordit.co/RJTvxYK5b0
    Not sure which screen pixel for iPad. You will need to experiment with that. But here's the CSS code to hide the social icon within certain screen size:
    Code:
    Log In or Sign Up to view this code.
    The above code will hide the social icon between 1211px and 1325px. You will need to remove the previous CSS code that involve the social icon:
    Code:
    Log In or Sign Up to view this code.
    **Cause this one will only hide the social icon below certain screen size. It can't set within 2 screen size.

    ===============

    I will recap all the CSS to be used. Remove all the previous CSS & try the below:
    Code:
    Log In or Sign Up to view this code.
    **You might need to tweak the value to fit your need.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  10. Eric Caldwell

    Eric Caldwell New Member
    Divi Block Pro Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks, now we have something searchable in the forums for the iPad Pro and iPadOS for people to add to and use.