Site logo

Archived topic

Difficulties fixing the mobile header

32 replies · Started by Leonardo on June 13, 2022

Viewing posts 31–33 of 33

I see. One thing we can do is to adjust your break points.

In Apperance > Customize > Additional CSS, you have these two codes:

@media (min-width: 768px) {
    .navigation-branding {
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
    }
    .account-icon {
        margin-left: auto;
    }
    .menu-bar-items {
        flex: 1;
    }
    .main-navigation .inside-navigation {
			   border-bottom: 1px solid var(--base);
    }
}
@media (min-width: 768px) {
    div#primary-menu {
        display:none;
    }
}

They both have a media query set to min-width: 768px. Can you try making them 769 px.

Then, add this CSS:

@media (min-width: 769px) {
    .gb-container.gb-container-ea32e238 {
        display:none !important;
    }
    .gb-container.gb-container-82161030.account-button {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .gb-container.gb-container-ea32e238 {
        display: block !important;
    }
    .gb-container.gb-container-82161030.account-button {
        display: none !important;
    }
}

Kindly let us know how it goes.

That’s odd. What browser and device are you using? Pixels usually just rounds up to the nearest ones, that is, it’s just either 768 or 769, nothing in between.

Does this also occur when using a different device? I can’t seem to replicate it from my end.

Hope to hear from you soon.

This archived topic is closed to new replies.