[Resolved] Mobile header looks different on iOS and Android phones

Home Forums Support [Resolved] Mobile header looks different on iOS and Android phones

Home Forums Support Mobile header looks different on iOS and Android phones

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1983459
    Sue

    I’ve been working on a website using GP’s Read theme, and I wanted the mobile header (which features a logo and site title) to look more like the desktop version. It looked fine on my Android, but I’ve been informed that it does not look correct on an iPhone. Is there any way for me to troubleshoot this? When I use WordPress’ feature to check the mobile version (customize -> click on the mobile icon), I don’t see the problem, but the iPhone screenshot I was sent has the site title on top of the logo.

    #1983800
    David
    Staff
    Customer Support

    Hi there,

    can you remove this CSS:

    .site-logo.mobile-header-logo img {
        height: auto !important;
        width: 80px;
    	padding-top: 100px;
    }
    .site-logo.mobile-header-logo img {
    	display: inline; 
    	margin-top: 10px; }
    
    .mobile-header-logo-title {
            color:#000;
    	display: inline;
    	font-weight: normal;
    	font-size: 25px;
            font-family: "Source Serif Pro", serif;
            margin-left: 10px;
    	padding: 80px 0 15px;
            position: absolute;
            top: 50%;
            -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    }

    And then i can provide Some CSS to create the layout you require

    #1984293
    Sue

    I have removed it.

    #1984593
    David
    Staff
    Customer Support

    Try this CSS:

    @media(max-width: 1040px) {
        .main-navigation .menu-bar-item > a {
            line-height: 80px !important;
        }
        .site-logo a {
            display: flex;
            align-items: center;
        }
        .mobile-header-navigation .site-logo.mobile-header-logo img {
            margin-right: 20px;
            height: 80px;
        }
        .mobile-header-logo-title {
            font-size: 25px;
        }
    }
    #1985630
    Sue

    Thanks — I have made that change and asked the person who was checking it on her iPhone to take a look at it. (It still looks fine on my Android.)

    #1985681
    David
    Staff
    Customer Support

    It looks great on my iPhone 🙂
    If your colleague still sees an issue, then ask them to make sure the browser caches have been cleared.

    #1985764
    Sue

    She says it looks fine now, so thank you for your help!!

    #1986319
    David
    Staff
    Customer Support

    Really glad to hear that!

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