- This topic has 17 replies, 2 voices, and was last updated 7 years, 8 months ago by Tom.
-
AuthorPosts
-
August 14, 2016 at 7:40 am #218062Annika
Hi! I’ve found myself in real deep waters (for me) and would need some help.
I’m creating a site with no header, but a sticky sidebar with logo and navigation. On certain pages and category pages I would need to have a horizontal top navigation menu, because with the sticky sidebar everything doesn’t show if there are several submenus with too many buttons. Right now I’m using the secondary navigation as my primary (if you know what I mean) because that was the only way I found out how to put it under the logo image.
I tried this (and of course changing it from secondary menu to main) but it didn’t work, and also it put the menu in the sidebar instead of on top of the page. It was switched on in the customizer and with the option of it being on top of the page.
Hope you understand, hard to describe these things in english!
August 14, 2016 at 8:29 am #218081TomLead DeveloperLead Developerbecause with the sticky sidebar everything doesn’t show if there are several submenus with too many buttons
I’m not too sure what you mean by this – can you explain further or maybe show me? 🙂
August 14, 2016 at 12:18 pm #218116AnnikaSo sorry! In my navigation menu in the sidebar, the submenus fly out to the right. But if there are too many, they don’t fit on the screen. And since the sidebar (including the navigation menu) is sticky it’s not possible to scroll down. When you scroll, the menu sticks and the content behind it scrolls. I’m using the Sticky Menu (Or Anything) On Scroll plugin.
August 15, 2016 at 12:09 am #218201TomLead DeveloperLead DeveloperAhh I see. Sticky elements do have that issue with dropdowns I’m afraid.
What if the sub-menus went straight out to the right? Would that help?
Let me know 🙂
August 15, 2016 at 4:38 am #218225AnnikaIt definitely would! 😀
August 15, 2016 at 8:02 am #218291TomLead DeveloperLead DeveloperTry adding this CSS:
.main-navigation ul ul li { position: static; }
Let me know 🙂
August 16, 2016 at 3:57 am #218542AnnikaWorks great, thank you!
August 16, 2016 at 9:39 am #218611TomLead DeveloperLead DeveloperYou’re welcome 🙂
August 17, 2016 at 7:51 am #218875AnnikaSomething new came up related to this, I don’t know what happened, I didn’t change anything in the code or customizer, but suddenly my menu looks like this. Only things I can think of is that I updated wordpress, I deleted some plugins, but why would it have any effect on the menu? Before, the text was vertically aligned in the middle next to the images. Changing the line-height makes the images stick together again but the text stays on the bottom. Tried som other things but nothing works. Help!!
August 17, 2016 at 8:56 am #218903TomLead DeveloperLead DeveloperAny chance you can link me to the page?
August 17, 2016 at 9:01 am #218912AnnikaOk so apparently it was the update, lots of stuff is not working… Just when I felt I had my flow back on 😀
August 17, 2016 at 9:08 am #218916TomLead DeveloperLead DeveloperWhich update? WordPress 4.6? GP?
August 17, 2016 at 9:34 am #218927AnnikaSorry, didn’t see your response! It’s in maintenance mode but I’ll give you a quick look, thank you! Here it is.
August 17, 2016 at 9:44 am #218934TomLead DeveloperLead DeveloperI’m not really sure how it was working before, but this CSS fixes it:
.menu li img { display: inline-block; vertical-align: middle; }
August 17, 2016 at 9:58 am #218942AnnikaI’m afraid it doesn’t. And I think there is a bigger problem because the whole site is falling apart, it’s as if none of my css (that I put in through simple css) is working. I can adjust some of the widgets, but not the theme. For example I removed the header but put an image in the header to show on mobile devices only, not it’s showing all the time, the horizontal navigation on top is only supposed to show on certain pages and categories, my content field was set to have no padding at all, it’s basically a mess and it happened after I updated, not exactly after but a while after.
-
AuthorPosts
- You must be logged in to reply to this topic.