Tagged: menu, secondary menu
-
AuthorPosts
-
March 23, 2015 at 11:46 am #416324
Hello, I’d like to create a second nav bar below the main nav bar. I tried to show it in a screenshot of what I’m trying to do
https://www.evernote.com/shard/s47/sh/ba450d88-e9f8-4447-8eb7-585e85e3ba00/8b880a7e6ec09dcd62a70c1dac0a06e3And I found this example http://www.greenwichacademy.org/page.cfm?p=515
I’m not sure if this is ready out of the box, but could you give me an idea how I can tackle this?
Thanks!
March 24, 2015 at 6:05 am #416910Hey catchmikey!
There is a secondary menu out of the box, go to Enfold–>Header–>Extra Elements–>Header Secondary Menu to display it. Then create a menu under Appearance–>Menus and assign it to Enfold Secondary Menu.
Best regards,
RikardMarch 24, 2015 at 1:57 pm #417057Hi Rikard, thanks for this but not quite what I’m looking for.
The client has requested that the secondary menu appears BELOW the main menu. And example is this website http://www.greenwichacademy.org/page.cfm?p=515
I believe I’ll need to do some coding and so I was just wondering if you could let me know where to look. Thanks!
March 24, 2015 at 3:04 pm #417084Hi!
Have you tried adding fullwidth submenu element to your page under content elements in Advanced Layout Builder?
Regards,
YigitMarch 24, 2015 at 4:54 pm #417167awesome! That’s what I was wanting to do. So cool that you guys created a builder element for this.
Thanks!
March 24, 2015 at 5:03 pm #417180Hey!
Great! You can check out highlighted new feature here on our blog – http://kriesi.at/blog :)
Cheers!
YigitDecember 12, 2015 at 10:21 pm #551492How can you make the fullwidth submenu element appear directly under the main menu div? By default the secondary menu appears under the entry title and breadcrumb div since it is part of the page content. I would like to use this element and the title/breadcrumb div at the same time. Thanks!
December 14, 2015 at 9:10 am #552024Hi,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
RikardDecember 28, 2015 at 6:51 pm #557794#1 This makes is so much easier than using a filter, but is there a simple way to make the menu make it show on all pages or all pages, but the home or font page?
#2 I have added a submenu using the filter: ava_after_main_container, but it’ not sticky. How can I make it sticky?
- This reply was modified 8 years, 11 months ago by hookedonweb.
December 29, 2015 at 5:53 am #558001Hi @hookedonweb,
Please send us a link to your site so that we can have a closer look.
Thanks,
RikardDecember 29, 2015 at 8:44 am #558031I managed to get the sub-menu to be sticky, I was not adding
<div class="sticky_placeholder"></div>
after the menu. So if working fine via the ava_after_main_container on all pages, but I have an issue on the Woocomerce shop page.The menu renders fine (no matter if I use the Advanced Layout Builder or the ava_after_main_container filter) the shop and sidebar are left justified.
I have looked over the css and can’t figure out how to get it back in position.
December 29, 2015 at 8:51 am #558033Actually, it’s working now. It seems if I paste the sub-menu as a sortcode the page breaks, but applying the sub-menu via the filter the page renders fine.
It would be great if you added a feature to place a submenu on all pages with an option to exclude specific pages, under the theme admin.
December 29, 2015 at 8:59 am #558034Hey!
Glad it is working now!
Please feel free to let us know if you need anything else.
For feature request, please post them here:
https://kriesi.at/support/enfold-feature-requests/Regards,
BasilisSeptember 20, 2016 at 10:42 pm #689565Hello, Thank you for this solution. Is there a way to then add the Secondary Menu to the mobile menu?
Regards, DSeptember 21, 2016 at 2:11 pm #689810Hi,
No, however you can refer to this post – http://kriesi.at/documentation/enfold/hide-menu-itemselements-on-mobile/
Best regards,
YigitOctober 14, 2017 at 11:56 am #864253That’s what I was looking for. But how do you make the submenu appear on all pages? (articles, categories)
October 17, 2017 at 4:21 am #865078February 2, 2018 at 4:04 am #906586Is it possible to add secondary menu below main menu without using fullwidth sub menu element? The reason I am asking is because website has 75+ pages, I would have to add fullwidth sub menu element to each page manually.
February 2, 2018 at 6:50 am #906658Hi,
You will have to modify the header.php file or the includes > helper-main-menu.php file for that. In the header.php file, you have to create another menu or container below this code.
get_template_part( 'includes/helper', 'main-menu' );
Best regards,
IsmaelFebruary 2, 2018 at 7:28 am #906681Thanks! Do you have an example what should be added below this code:
get_template_part( ‘includes/helper’, ‘main-menu’ );
February 2, 2018 at 10:31 am #906755Hi,
You could create the element you want using the layout builder, once you are finished with it then you will need to enable debug mode in order to see the shortcodes: http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
Then you should be able to use the following function to echo your element:
echo do_shortcode('[your_short_code]');
Best regards,
RikardFebruary 4, 2018 at 7:33 am #907381Thanks Rikard.
When I add Full Width SubMenu Element this is the short code I see.
[av_submenu which_menu='' menu='191' position='left' color='main_color' sticky='aviaTBsticky' mobile='disabled']
[av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='']
[av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='']
[/av_submenu]I go to Enfold: Theme Header (header.php) and add this code below line get_template_part( ‘includes/helper’, ‘main-menu’ ); nothing happens.
echo do_shortcode(‘[av_submenu which_menu='' menu='191' position='left' color='main_color' sticky='aviaTBsticky' mobile='disabled'][av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style=''][av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style=''][/av_submenu]‘);
please advise?
February 4, 2018 at 7:45 am #907384Also is it possible to add additional option under: Header Layout: Logo Left, Menu Below in future versions of ENFOLD or additional setting for location of Header Secondary Menu?
- This reply was modified 6 years, 10 months ago by anristudio.
February 5, 2018 at 4:19 am #907658Hi!
Please try this code instead.
echo do_shortcode("[av_submenu which_menu='' menu='191' position='left' color='main_color' sticky='aviaTBsticky' mobile='disabled'] [av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style=''] [av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style=''] [/av_submenu]");
Please feel free to request – or vote if already requested – such feature on Enfold feature request form.
Cheers!
IsmaelFebruary 5, 2018 at 5:33 am #907708Ismael,
I copied/pasted your code – no changes, still no secondary menu, below main menu.
- This reply was modified 6 years, 10 months ago by anristudio.
February 5, 2018 at 5:43 am #907720Hi,
It’s there but hidden behind the header. Please use the following css code.
#top .av-submenu-container.av-sticky-submenu { position: absolute; top: 125px; }
Adjust the top position value as needed.
Best regards,
IsmaelFebruary 5, 2018 at 9:22 am #907798Ismael Thank you – this worked
However there are issues on mobile with the secondary menu being displayed over the slideshow.February 5, 2018 at 1:29 pm #907936Hi onastvar,
Can you give us a link to that page with the slideshow?
Best regards,
VictoriaFebruary 5, 2018 at 6:24 pm #908137Victoria, see private, slideshow is on the homepage. Thanks!
February 7, 2018 at 12:31 pm #909069Hi onastvar,
Well, how do you want to have it? Hide it? Make the header bigger and put the slider below?
Best regards,
Victoria -
AuthorPosts
- The topic ‘Add second menu below main menu’ is closed to new replies.