Site logo

Archived topic

Mobile menu

11 replies · Started by matko-petrovicgmail-com on October 31, 2022

Viewing posts 1–12 of 12

Hi,
I,m trying to recreate this header made with elementor. Got pretty close on desktop, but can't make it work on mobile. Could you please point me in the right direction.

null
mobile

Thank you in advance.
Best regards,
Matko Petrović

Hi there,

if you created it with Elementor - then you will need to ask Elementor support for assistance as the Theme has no control over there code.

It was created with elementor,but now I'm trying to recreate it without elementor, using GP Elements and GB.

Ah ok :)
Can i see the site ?

Do you have a mockup image of how you would want the mobile layout to look ?

It should look just like the one in the first post.

Doh - that was kind of obvious :)

1. In Customizer > Layout > Primary Nav - remove the mobile menu label.

2. Add this CSS:


@media(max-width: 768px) {
    .main-navigation .menu-bar-items {
        margin-right: auto;
    }
}

Tnx David,
I will try that and get back to you.

OK - let me know :)

Tnx David, that worked out great. Now I only need to make logo image a bit bigger and apply the same thing for sticky navigation.

Ok, try this CSS:


.mobile-header-navigation .site-logo.mobile-header-logo img {
    height: 80px !important;
    padding: 0;
}
.main-navigation.has-branding .menu-toggle {
    padding-left: 40px;
}
This archived topic is closed to new replies.