
-
AuthorPosts
-
February 27, 2016 at 8:08 am #590179
Hi there,
I have a header menu where only one page (blog) is supposed to have a submenu. Hovering on “blog” should show the submenu in a dropdown. As it does by default, all good so far.
Once the user clicks/navigates to the blog page, the submenu should stay open until the user navigates to another page.
I tried it with fixing a submenu just below the main menu, using css in a child theme. But then some issues occur, I hope you can help with:
1. My header menu is set to “shrink header”, so I need to lift my submenu to the header, ones it shrinks. And lower it ones it grows.2. When hovering on “blog” in the main menu, still the dropdown of the submenu opens, so I end up having 2 submenus on top of each other. Ideal would be, if the dropdown does not open here on the blog page.
I wonder, If there would be a better approach to it as I’m trying so far. Maybe its far more simple to keep the submenu open through functions.php modification, or something else?
I hope I put my question clear enough in words.
Thank you for your help.March 1, 2016 at 4:47 am #591318Hey AndreasRau,
I’m not sure that would be possible but send us a link to your site and we’ll have a look.
Regards,
RikardMarch 9, 2016 at 7:11 am #595337Hi Rikard,
thank you for your reply and sorry for my delayed reply. Just got back from a holiday with my girlfriend, now back to work.
I spend some more time to it, threw away everything and started over. Got it done much better.
Setting up with the right settings, I found enfold is able to handle the position of the submenu while “shrink header” is active.So my submenu is now beautifully moving with the header.
Now I have a new question. Since the padding is to big, I would like to reduce it.
Where do I have to look in the functions.php, to find the submenu/header padding function ? So I can lift it 10px.Still need my link?
ThanksMarch 9, 2016 at 7:46 am #595353Hey!
that is not something located to the functions file, but rather control from CSS.
You will have to edit the CSS to make it look better.Can we see what you need to do?Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.