• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to prepare my website for the new  iPhone X?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to prepare my website for the new  iPhone X?

This topic is: resolved

Tagged: iphone x, viewport

  • This topic has 6 replies, 4 voices, and was last updated 8 years, 4 months ago by detroitwidget.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 22, 2017 at 7:48 am #211745
    Matus
    Member

    I noticed that my website isn't covering the whole screen on iPhone X.
    I found this solution:

    1. Find a <meta name="viewport" content="width=device-width, initial-scale=1">
    2. Replace it with <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">

    How can I replace this code the right way in Genesis Framework? Will there be update in the future or is this WordPress problem?

    https://akouspesne.sk
    September 22, 2017 at 7:54 am #211746
    Victor Font
    Moderator

    Genesis has a filter you can add to functions.php:

    add_filter( 'genesis_viewport_value', 'iphonex_viewport' );
    function iphonex_viewport( $content ){
        return "width=device-width, initial-scale=1, viewport-fit=cover";
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 22, 2017 at 10:40 am #211755
    RavenManiac
    Participant

    Victor, do you know if the code you posted will eventually end up in a updated version of the Genesis framework?

    September 22, 2017 at 3:54 pm #211768
    Victor Font
    Moderator

    I have no idea. I’m just a community volunteer and have no affiliation with Studio Press. I don’t know why they would though because the filter already exists so you can add whatever you want to the viewport meta tag. The fix mentioned in the first post is for one browser on one phone to work around a specific issue caused by the iPhone X notch. It is only supported by mobile Safari.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 23, 2017 at 7:11 am #211788
    detroitwidget
    Member

    Interesting.

    Victor - Where did you find this filter?

    September 23, 2017 at 9:02 am #211792
    Victor Font
    Moderator

    The filter is in the code that generates the viewport meta tag. It's in genesis/lib/structure/header.php.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 23, 2017 at 9:31 am #211796
    detroitwidget
    Member

    Thanks.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble