-
AuthorPosts
-
August 7, 2014 at 5:54 pm #301233
Hi guys, I’m trying to move the submenus from the hover-dropdowns to another section underneath the main menu, but above the page title.
so, from this :
to this
In the example, Affiliations, Awards, etc are children of Practice. Ideally, this list should be populated with the children of the current page automatically.Normally, i can do these things myself, but Enfold is a lot more complicated than previous themes :)
Cheers
- This topic was modified 10 years, 3 months ago by radugidei. Reason: added images
August 8, 2014 at 8:41 pm #301806Hi!
You can use the MegaMenu columns functionality to make the submenus appear horizontally: https://vimeo.com/channels/aviathemes/92503669
Regards,
JosueAugust 11, 2014 at 4:05 pm #302677Thanks Josue, i know of megamenus, used them quite a bit.
What i wanted is different because i want the submenu to be displayed all the time, not just on hover.
Essentially adding another <div> between the menu div and the title+breadcrumbs div. Or putting this inside the menu div.August 12, 2014 at 4:57 am #302987Hi!
This mod would require a lot of coding and unfortunately that’s something we can’t cover, i’ll provide you the files involved so you can try doing it yourself:
js/avia.js
Look for the aviaMegamenu function located in line 894.includes/helper-main-menu.php
If you need to put a empty div to store the submenu items you should do it here, around line 131.An idea would be to try to move the submenus to an empty container when hovered via JavaScript + additional style fixes could be handled by CSS.
Best regards,
JosueAugust 12, 2014 at 10:38 am #303063Great thanks.
Just had another idea… enfold has this option where for pages that have sub-pages, a sidebar menu is added automatically. Essentially, all i want is to move that menu below the navigation menu. Could you please tell me which files handle that automatic sidebar sub-menu ?August 12, 2014 at 10:43 am #303072Hey!
functions-enfold.php file, look for the avia_sidebar_menu function around line 938.
Regards,
JosueAugust 12, 2014 at 10:58 am #303085That was quick :) Thanks Josue, that’s what i was looking for. It’s lines #820 to #873
August 12, 2014 at 5:32 pm #303342You are welcome, always glad to help :)
Regards,
Josue -
AuthorPosts
- The topic ‘submenus above page title, not in dropdowns’ is closed to new replies.