• Resolved randomuser87a65

    (@randomuser87a65)


    Hello, I would like to hide the menu button, and keep the menu always opened, like on the twenty eleven theme, how shoud I do that ? Creating a child theme to modify the header ? I want to make sure it works and stay reponsive, if someone know what I should do

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter randomuser87a65

    (@randomuser87a65)

    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.www.ads-software.com/reference/functions/wp_dequeue_script/

    Thread Starter randomuser87a65

    (@randomuser87a65)

    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.

    Thread Starter randomuser87a65

    (@randomuser87a65)

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.