[Resolved] Change Mobile Breakpoint for Main Navigation

Home Forums Support [Resolved] Change Mobile Breakpoint for Main Navigation

Home Forums Support Change Mobile Breakpoint for Main Navigation

  • This topic has 5 replies, 4 voices, and was last updated 7 years ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #137172
    Richard Bland

    Morning Tom,

    Is there any way within the framework to change the mobile breakpoint for the main menu. This clients menu is a bit too long and needs to break into mobile view a bit sooner.

    Cheers

    #137267
    bdbrown

    Hi Richard. Here is a related post that gives some background on this question.

    #137283
    Tom
    Lead Developer
    Lead Developer

    Check out this code: https://gist.github.com/generatepress/c23aef2d05807c39bb32

    It allows you to set the width at which the mobile menu CSS kicks in ๐Ÿ™‚

    #309652
    Craig

    This code works great…but is there any chance to have it force the logo centered? I tried adding this…

    .fluid-header .inside-header, .header-widget, .site-info {
        text-align: center;
    }

    …but the hamburger menu / search icon don’t move down and are placed on top of each other.

    #309665
    Craig

    Ah..nevermind!

    Found the answer…add the following to the code linked above:

    .header-aligned-left .site-header

    #309693
    Tom
    Lead Developer
    Lead Developer

    Glad you got it working ๐Ÿ™‚

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