- This topic has 15 replies, 4 voices, and was last updated 6 years, 10 months ago by Leo.
-
AuthorPosts
-
January 23, 2017 at 9:18 am #267102Kim
Hi!
I’m trying to get a WooCommerce cart-plugin called Menu Cart Pro (places a cart-icon in the navigation menu) to play nicely with GP. I’ve set the primary navigation to ‘sticky’, and for some reason, when I scroll down the page and the navbar changes from its normal to its ‘sticky’ mode, the cart icon jumps and changes positions (from left of search/hamburger icons to the right of them). You can see the phenomenon live here.
Wasn’t quite sure whether to ask you or the Menu Cart guys first, but I have to start somewhere…
Kim
January 23, 2017 at 9:39 am #267123TomLead DeveloperLead DeveloperStrange, what happens if you change your navigation alignment in “Customize > Layout > Primary Navigation” to “Left”?
January 23, 2017 at 12:29 pm #267211KimSame thing I’m afraid:( I did try quite a few different combinations (Navigation Allignment Right/Left/Center, Navigation/Inner Navigation Width Contained vs. Full etc.) and nothing seems to affect the behaviour. Weird…
January 23, 2017 at 1:15 pm #267219TomLead DeveloperLead DeveloperCan you give this CSS a try?:
.nav-float-right .navigation-clone.main-navigation .menu > li.slideout-toggle, .nav-float-right .navigation-clone.main-navigation .menu > li.search-item { display: block; float: right; }
January 24, 2017 at 8:58 am #267523KimSorry to be such a drag, but phenomenon remains the same even with the css…
January 24, 2017 at 11:10 am #267599TomLead DeveloperLead DeveloperCan you try copying the CSS directly from this topic instead of the email? It looks like the > characters were converted in your email client.
January 24, 2017 at 2:21 pm #267783KimI did copy it from the topic, however, as I just found out, I only copied what was visible inside the white ‘frame’ in your post… Now that I copied all of the code including the bits to the right of the frame it works fine:)
The whole menu still jumps about a centimetre to the right every time the navbar enters ‘sticky mode’, as if normal/sticky navbar have different container widths. Might this be due to my settings?
January 24, 2017 at 2:39 pm #267794TomLead DeveloperLead DeveloperThat’s happening because when it’s not sticky, it’s using your header which has left and right padding.
You can remove your header and use your navigation as a header pretty easily using the instructions at the bottom of this article: https://docs.generatepress.com/article/sticky-navigation/
January 29, 2017 at 10:25 pm #271547KimGreat, thanks for the tip:) Kim
January 29, 2017 at 11:10 pm #271550TomLead DeveloperLead DeveloperNo problem 🙂
June 6, 2017 at 11:44 am #329497SusanneHello, Just reading this while trying to figure out the same problem, but the article you referred to at https://docs.generatepress.com/article/sticky-navigation/ does not seem to contain the instructions for removing the header. Is it still somewhere to be found?
June 6, 2017 at 1:13 pm #329557LeoStaffCustomer SupportHi there,
I think this is what you are looking for: https://docs.generatepress.com/article/navigation-logo/#navigation-as-header
Let me know.
June 6, 2017 at 2:18 pm #329598SusanneHi Leo, yes thanks, that is the document, but that still does not resolve the problem that the sticky navigation jumps. Should it not stay in the same position when switching from the regular header? I believe that was Kim’s problem and it is mine too.
June 6, 2017 at 2:25 pm #329601LeoStaffCustomer SupportIf you follow all the steps in the article then it shouldn’t.
Are you able to provide a link to your site?
June 6, 2017 at 3:04 pm #329623SusanneHi Leo,
sorry I am developing locally, but i just looked at another GP site and I applied the same settings and it worked, so it must be something else I am doing. Yikes. Thanks for your feedback i report back when I find it. -
AuthorPosts
- You must be logged in to reply to this topic.