Site logo

Archived topic

Hide mobile header on specific page

3 replies · Started by Omar on April 25, 2022

Viewing posts 1–4 of 4

Hello,
I was trying to hide the mobile header from a specific page, but I wasn't able to approach that.
I tried the following code:

@media (max-width: 768px) {
    .mobile-header .inside-navigation {
        display: none;
    }
}

and it disabled the header from all the page even when I added the page id, and I also tried the following code:
`
body.page-id-8900 .main-navigation .menu-toggle {
display: none;
}

but it didn't work too.

I solved it by using the following code:


body.page-id-9040 .inside-navigation {
display: none;
}

Thank you

Glad you were able to resolve the issue! Feel free to reach out anytime you’ll need assistance with anything else. :)

This archived topic is closed to new replies.