{"id":229061,"date":"2020-01-24T14:58:13","date_gmt":"2020-01-24T14:58:13","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/sticky-menu-copy\/"},"modified":"2025-03-27T10:00:16","modified_gmt":"2025-03-27T10:00:16","slug":"sticky-menu","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/sticky-menu\/","title":{"rendered":"Sticky Menu"},"content":{"rendered":"<p>Using Max Mega Menu Pro it is possible to make your menus stick to the top of the page as the user scrolls down.<\/p>\n<h3>Making a menu sticky \/ fixed<\/h3>\n<p>To make a menu stick to the top of the page when the user scrolls down, go to <i>Mega Menu &gt; Menu Locations<\/i>.<\/p>\n<p>Expand the menu location that you want to stick, and click the Sticky tab.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-424159\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings.png\" alt=\"\" width=\"3158\" height=\"1950\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings.png 3158w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings-300x185.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings-1024x632.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings-768x474.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings-50x31.png 50w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings-1536x948.png 1536w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2020\/01\/sticky-settings-2048x1265.png 2048w\" sizes=\"auto, (max-width: 3158px) 100vw, 3158px\" \/><\/a><\/p>\n<h3>Sticky Menu Settings<\/h3>\n<h4>Enabled<\/h4>\n<p>This must be checked for the sticky functionality to be enabled for this menu location.<\/p>\n<h4>Stick on (desktop\/mobile)<\/h4>\n<p>This setting will enable or disable the menu from being &#8216;stuck&#8217; on desktop or mobile (when the screen is wider or narrower than the width of the defined &#8220;Responsive Breakpoint&#8221; in the menu theme).<\/p>\n<h4>Sticky Opacity<\/h4>\n<p>Set the opacity (transparency) of the menu when it&#8217;s sticky. 1 is full opaque, 0 is fully transparent.<\/p>\n<h4>Sticky Offset<\/h4>\n<p>If you enable multiple sticky menus, or have other sticky elements on your site, you can use this option to make sure they do not stack on top of each other.<\/p>\n<h4>Expand Background<\/h4>\n<p>By default the menu background will expand to fill the whole width of the browser when the menu becomes sticky. If you are, for example, making an accordion menu sticky (where the content to the left or right of the menu needs to remain visible), you can set this to &#8216;Off&#8217;.<\/p>\n<h4>Hide Until Scroll Up<\/h4>\n<p>When this option is enabled the menu will scroll off the screen as the user scrolls down the page. However, as soon as the user starts scrolling up, the menu will reappear. Check the header menu on this page to see an example of this behaviour.<\/p>\n<h4>Scroll Tolerance<\/h4>\n<p>Adjusts how sensitive the Hide Until Scroll Up behaviour is (recommended: 50). <em>Only applies when &#8220;Hide Until Scroll Up&#8221; is enabled.<\/em><\/p>\n<h4>Scroll Offset<\/h4>\n<p>The menu will disappear from the screen once the user has scrolled this far down the page. <em>Only applies when &#8220;Hide Until Scroll Up&#8221; is enabled.<\/em><\/p>\n<h2>See Also<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.megamenu.com\/documentation\/sticky-menu-item-visibility\/\">How to show or hide items in the sticky menu<\/a><\/li>\n<li><a href=\"https:\/\/www.megamenu.com\/documentation\/sticky-menu-background-color\/\">How to change the Sticky Menu background and font color<\/a><\/li>\n<li><a href=\"https:\/\/www.megamenu.com\/documentation\/the-sticky-menu-is-not-working\/\">The Sticky Menu is not working<\/a><\/li>\n<li><a href=\"https:\/\/www.megamenu.com\/documentation\/how-to-disable-the-sticky-menu-on-a-specific-page\/\">How to disable the sticky menu on a specific page<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Using Max Mega Menu Pro it is possible to make your menus stick to the top of the page as the user scrolls down. Making a menu sticky \/ fixed To make a menu stick to the top of the page when the user scrolls down, go to Mega Menu&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[16],"ht-kb-tag":[21],"class_list":["post-229061","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-pro-features","ht_kb_tag-sticky"],"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Tom Hemsley","author_link":"https:\/\/www.megamenu.com\/author\/megamenu\/"},"uagb_comment_info":0,"uagb_excerpt":"Using Max Mega Menu Pro it is possible to make your menus stick to the top of the page as the user scrolls down. Making a menu sticky \/ fixed To make a menu stick to the top of the page when the user scrolls down, go to Mega Menu...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/229061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/comments?post=229061"}],"version-history":[{"count":5,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/229061\/revisions"}],"predecessor-version":[{"id":424162,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/229061\/revisions\/424162"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=229061"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=229061"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=229061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}