[Resolved] Sticky menu is not centered

Home Forums Support [Resolved] Sticky menu is not centered

Home Forums Support Sticky menu is not centered

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1660847
    Peter

    Hello,

    I am currently working on a staging site for my current site and the header menus between the two are no longer the same. On the current site the sticky menu is centered when scrolling down but on the staging it is not.

    What on earth did I do wrong? I have been trying to resolve this now for some time to no avail.

    #1660939
    Ying
    Staff
    Customer Support

    Hi Monica,

    This CSS is causing it’s align right.
    https://www.screencast.com/t/5i0KzFmIiJZ

    I can’t see where it’s coming from, could you disable your cache plugin and clear cache so we can have another look?

    #1661898
    Peter

    I have disabled the plugin and cleared the cache.

    #1662000
    David
    Staff
    Customer Support

    Hi there,

    can you check the Customizer > Layout > Primary Navigation and make sure the Inner Navigation Width is set to Contained

    #1662053
    Peter

    Hi,

    I did not see the option under primary, but I did under secondary and it is selected as contained.

    Screenshots: https://imgur.com/a/FG5RltV

    As far as I can tell my customization of this site is mirroring the original: http://lunghealth.ca/ so I am very confused what happened to make the sticky menu start misbehaving.

    #1662135
    Ying
    Staff
    Customer Support

    Hi Monica,

    Are you using Flexbox for the current site and Floats for the staging site?
    Try to keep them under the same structure.

    https://docs.generatepress.com/article/switching-from-floats-to-flexbox/

    #1662185
    Peter

    I’m using elementor on both sites, there weren’t any changes between the two that I am aware of.

    #1662217
    Ying
    Staff
    Customer Support

    Could you go to Customizer > General, confirm the Structure setting for both sites are Flexbox?
    Let me know ๐Ÿ™‚

    #1662226
    Peter

    Both sites are Floats.

    #1662254
    Peter

    Not sure what caused it but i fixed it by exporting my old site’s settings and importing them. Still no idea what I did to change it.

    #1662256
    Ying
    Staff
    Customer Support

    That is a weird one.
    Glad it’s fixed ๐Ÿ™‚

    #1981986
    Julian

    Just got the same problem and got it fixed:

    When you are in Layout -> Primary Navigation certain options only appear if you select “Above header” or “Below header” for option “Navigation Location”. Besides others you find the option “Navigation Alignment” which can be set to “right”, “left”, or “center”. For me it was set to “left” which also affected the navigation in the fixed header. I set it to “center”, saved the configuration, then set the “Navigation Location” to “Float Right” again because I wanted the non-fixed header navigation to float on the right side beside the site logo. The navigation in the fixed header stayed centered.

    Maybe this helps someone else.

    #1982218
    David
    Staff
    Customer Support

    Hi Julian,

    yes, its a known UX issue, and something we’ll be addressing a future update.
    Thanks for sharing your solution for others!

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