Do you mean in the mobile view? Then this would be a possible CSS code solution:
.main-navigation ul.nav-menu.toggled-on, .menu-toggle {
display: none;
}
.main-navigation ul.nav-menu, .main-navigation div.nav-menu > ul {
display: block;
}
You would have to insert this under Appearance > Customizer > Additional CSS.
Hi, yes on mobile, it seems to be working thank you, do I need jquery for something else ? I saw it’s loaded by the theme, I could delete if it’s not necessary anymore thanks a lot
The backend of WordPress will not be usable without jQuery. In the frontend, it depends on what else you are using. Some plugins need it. Incidentally, you should not delete it as jQuery is part of the WordPress core – if at all, then you would have to prevent its integration in the frontend. This can be done with an individual script in an init hook via https://developer.wordpress.org/reference/functions/wp_dequeue_script/
Thank you, I didn’t know that, I don’t see it with the twenty eleven theme when I run it on google page insight
For Google, jQuery is completely irrelevant.
Not on theme above twenty eleven, it appears on the google page insight, I will see thanks, it doesn’t really change anything for the performance anyway