Skip to content

Navigation Block: Change resolution at which mobile version of navigation activates #54388

Answered by helixgdn
anddev32 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

Here is the solution.

Let's say you want the mobile breakpoint to be at 1024px.

Include the following css code in your theme:

`@media (min-width: 600px) {
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
display: none;
}

.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close {
    display: none
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
    left: 0
}

}

@media (min-width: 600px) and (max-width: 1…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by anddev32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants