WordPress.org

Ready to get started?Download WordPress

Forums

Disable menu-toggle in twenty twelve (8 posts)

  1. madsrh123
    Member
    Posted 1 year ago #

    Is there a way to disable the menu-toggle that appears when the screen is below a certain width?

    I'm using the Twenty Twelve theme and everything looks just fine until my beautiful menu is transformed?

  2. amandajoonline
    Member
    Posted 1 year ago #

    I would like to see this also. I tried disabling the navigation.js and something in the header at the advice of other post I found. So far no luck.

  3. Debwork
    Member
    Posted 1 year ago #

    Me too - everything was fine and then all of a sudden menu toggle appears. have deleted things out of header.php and changed styles - still haven't found the right solution.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    If you're using a plugin that provides Custom CSS functionality or a Child Theme, use this CSS;

    @media screen and (max-width: 480px) {
     .main-small-navigation .menu {
      display: block;
     }
     .site-navigation h1.menu-toggle {
      display: none;
     }
    }
  5. qenomesum
    Member
    Posted 1 year ago #

    didn't work. menu still toggles

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Try this CSS instead;

    @media screen and (max-width: 680px) {
     .main-navigation div.nav-menu > ul {
      display: block;
     }
     .menu-toggle {
      display: none;
     }
    }

    More thorough answer found at http://wordpress.org/support/topic/twenty-twelve-remove-responsive-menu

  7. mavp
    Member
    Posted 1 year ago #

    I was also trying to disable this menu-toggle when Andrew gave this good hint. In the css file, instead of adding a new max-width value, I've simply redefined the min-width value:

    @media screen and (min-width: 10px)

    It's quite simple and works fine for me. Maybe it could help you.

  8. alhalkab
    Member
    Posted 1 year ago #

    great! it works, tks to mavp and all the bunch of genius

Topic Closed

This topic has been closed to new replies.

About this Topic