-
AuthorPosts
-
November 20, 2020 at 10:44 am #1261744
Hi,
I’m building a shop for a client and in the mean time I want a temp homepage that is live. So I made a temp page in maintenance mode. I want a different menu on the temp homepage than the shop. I saw in another thread that I can use the plugin “swap menu” and that works, except that the shopping basket still is visible on the temp homepage.
I fixed that for now by selecting “not showing shopping basket, only when something is bought” in the Enfols shop settings but this will also be effected on the shop pages. And the client eventually wants it visible all the time. So this way, the client cannot see it and test it the correct way.
Is there a way to show the shopping basket in the menu on the shop pages and hide it on the temp homepage?
Also additional, I just found out the menu is not visible as a hambuger menu on mobile phones. What do I need to do to get it visible?
Thanks!
- This topic was modified 4 years, 1 month ago by JantienM.
November 21, 2020 at 11:59 am #1261914Hey JantienM,
Could you post a link to the site in question so that we can have a closer look please?
Best regards,
RikardNovember 21, 2020 at 4:21 pm #1261966Hi, see private content.
November 22, 2020 at 12:38 pm #1262094Hi,
Thanks for that. Please try the following in Quick CSS under Enfold->General Styling:
.home #menu-item-shop { display: none; }
Best regards,
RikardNovember 22, 2020 at 12:58 pm #1262102Yes, that worked, great. thanks.
The only problem that still exists is that the hamburger menu on de live homepage is not visible on mobile devices.
Hope you can help me out with that also, thanks a lot.
November 24, 2020 at 10:01 am #1262612Hi Rikard,
Did you see my other question regarding the menu and using menu swapper as well? The hamburger is not appearing on mobile screens on de live homepage.
Thanks!
November 25, 2020 at 8:42 am #1262941Hi,
Thanks for the update and sorry for the late reply. Does the same thing happen if you disable the Menu Swapper plugin?
Best regards,
RikardNovember 25, 2020 at 9:26 am #1262949No, it has to do with the menu swapper I think.
Because on de the shop site, the hamburger does appear.
When I select main menu instead of secundairy menu on the live homepage, the hamburger does appear. I was wondering if it’s possible to make two main menus to work around this issue?
November 26, 2020 at 5:04 am #1263163Hi,
Thanks for the update. I’m not sure how that plugin works, but there’s no functionality for adding more than one menu in the theme unfortunately. Maybe you could try reaching out to the plugin developers, to see if there is a solution for removing the plugin functionality on mobile?
Best regards,
RikardJuly 16, 2021 at 10:37 pm #1310435was there a resolution to this? I use menu swapper on a site and it works great with enfold except on mobile. on mobile, the selected menu does not appear as a hamburger menu. Wondering if there is any solution?
July 24, 2021 at 8:55 pm #1312113Hi,
Thank you for your patience, the mobile menu is created dynamically so I don’t know how the plugin is swapping the menus, but to use a different menu on a certain page you could use this filter in your child theme functions.php:function av_different_menu( $args = '' ) { if(is_page('591') && $args['menu_id'] == 'avia-menu') { $args['menu'] = '21'; } return $args; } add_filter( 'wp_nav_menu_args', 'av_different_menu' );
Please adjust the page & menu IDs to suit. To find the menu ID for your menu hover over the “delete menu” link and look at the link address
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.