Site logo

Archived topic

Secondary menu is not shown in mobile when floating right

13 replies · Started by Fernando Díaz Gascón on June 5, 2020

Viewing posts 1–14 of 14

Hello,
I have put the language selector (WPML) in the secondary menu, in the right side of the logo, and I find that in mobile, it dissapears (I have the mobile header on).

I checked this answer and I put the CSS, but it appears the main logo in mobile (I attach a screen capture with the result. Here: Mobile header with the css), so it looks weird. I would like to remove the logo and that space.

Thank you in advance.

Hi there,

this CSS you have is causing the Site Header to be displayed on mobile:

@media (max-width: 768px) {
    #masthead {
        display: block !important;
        opacity: 1;
    }
}

remove that to fix the issue.

Leo, that is the post we are discussing in this thread that is not working for me because I see the main logo.

Did you remove the CSS?

Can you add it in so I can see the issue?

Can you double-check the link for the screenshot?

It isn't working for me.

Give this CSS a shot:

@media (max-width: 768px) {
    .inside-header .site-logo {
        display: none;
    }
    #secondary-navigation {
        margin-bottom: 0;
    }
}

Done

This archived topic is closed to new replies.