Not sure if proper or only way but I had to make the text in the muffin options long enough as with width of the button I am using then make that text transparent.. Could not figure out any other way to just widen that area as needed. But this works for now. Let me know if there is a more better or proper way..
You made really great workaround for that - and as I think this will be solution is good because without CSS it's almost not possible.
What I mean is, if you will not provide the text for the "Action Button" area, it will be automatically disabled to save space for menu.
Also, providing the static "Width" in CSS is not good too because script is calculating the width of all elements and changes the width of all of the elements to fit on screen, what you made is good, because the text in action button is almost the same as button and image will not be "cropped".
If you have any other questions, feel free to ask.
Cool thanks., sound complex with the script and width /\ lol.. Is there a way to target only the non sticky nav menu...
Like say you wanted to make the menu transparent but only until you started to scroll in which then the sticky CSS would take over with a background color? Or am I overthinking this and selecting a different menu in the muffin options may take care of this?
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.
Cookies are small text files that can be used by websites to make a user's experience more efficient.
The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.
This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.
You can at any time change or withdraw your consent from the Cookie Declaration on our website.
Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.
Please state your consent ID and date when you contact us regarding your consent.
Comments
Just looking to hide the navigation menu now only until you scroll then have it come back up. Looking possibly to do with with not:sticky CSS?
Like say you wanted to make the menu transparent but only until you started to scroll in which then the sticky CSS would take over with a background color? Or am I overthinking this and selecting a different menu in the muffin options may take care of this?
You can also create another header for this menu, but if you don't have to display other menu items than the primary menu, you shouldn't use it.