Home › Forums › WoodMart support forum › Mobile menu: support select any menu instead Main menu
Mobile menu: support select any menu instead Main menu
- This topic has 16 replies, 4 voices, and was last updated 5 years, 10 months ago by Elise Noromit.
-
AuthorPosts
-
December 1, 2018 at 9:36 pm #93127
anikitin35ParticipantI can’t beleave why this option is missing now. It’s very useful for building landing pages. Please add this feature in Header builder on next update. Thank you!
December 2, 2018 at 8:46 am #93161
Elise NoromitMemberHello,
Thank you can set any menu as mobile.
1. Create menu in Appearance > Menu and set it as mobile http://prntscr.com/lpm701
2. Please navigate to Woodmart > Header builder http://prntscr.com/iyd2pe
3. Choose the proper header type (your current) http://prntscr.com/iyd333
4. Switch to the mobile view of your header http://prntscr.com/iyd3v3
5. Add mobile menu element it will take the mobile menu.
Best Regards
December 2, 2018 at 6:14 pm #93265
anikitin35ParticipantOh, no. You are not understanding this pain. It does not solve a problem because we can select only one mobile menu for website. Only one mobile menu for all pages! If I create particular page with particular navigation menu (landing page) I need particular menu different from default mobile menu for entire website.
Example:
1. Entire website. Main menu. Mobile menu (checked as mobile menu).
2. Landing page. New menu selected in header builder. Mobile menu (selected in header builder, not entire mobile menu: New menu )I need to select mobile menu wich I want render with header for particular page. This feature can provide make particalar mobile menu for particular header. So many pages with main and mobile menu as we want. Please, add “Choose menu Choose which menu to dislay in the header” shortcode configuration form field as for “Menu” shortcode on top of its configuration page.
So, this help to understanding my problem using this theme.
December 3, 2018 at 7:09 am #93341
Artem TemosKeymasterHello,
Try to add the following PHP code snippet to the child theme functions.php file to do this. Set your landing page ID and you custom mobile menu ID
add_filter( "theme_mod_nav_menu_locations", 'custom_mobile_menu', 10, 1 ); function custom_mobile_menu( $locations ) { if ( get_the_ID() == 845 ) { // Check your page ID. Change the menu for this particular page. $locations['mobile-menu'] = 45; // You new menu ID } return $locations; }
Regards
December 27, 2018 at 2:19 pm #98672
anikitin35ParticipantDosn’t working. The main menu is displayed instead my landing page menu ID.
function custom_mobile_menu( $locations ) { if ( is_page(array(1367, 2399, 2279, 2459, 2339)) ) { // Check your page ID. Change the menu for this particular page. $locations['mobile-menu'] = 1218; // Your new menu ID } return $locations; } add_filter( 'woodmart_child_mod_nav_menu_locations', 'custom_mobile_menu', 10, 1 );
December 27, 2018 at 2:21 pm #98675
Artem TemosKeymasterPlease, send us this page link, write what menu you want to show there and your FTP access.
December 27, 2018 at 7:17 pm #98728
anikitin35Participantmenu=1218
December 27, 2018 at 8:31 pm #98745
Artem TemosKeymasterWe can’t connect with this data https://gyazo.com/152313619eb1fea88cc74e1e4526eae6
December 29, 2018 at 8:09 am #98963
anikitin35ParticipantHello. Please try now.
December 29, 2018 at 9:39 am #98982
Artem TemosKeymasterPlease, disable all external plugins (especially cache) and send us your admin access.
December 29, 2018 at 10:46 am #98997
anikitin35ParticipantCache is disabled for autorized users.
December 29, 2018 at 10:51 am #98998
anikitin35ParticipantFriends, may be good idea is add dropdown select form for selecting mobile menu in header element?
Dropdown example:
By default (with checkbox as mobile menu)
Landing
Other menuDecember 29, 2018 at 12:28 pm #99007
Artem TemosKeymasterPlease, send us also a link to the page where menu need to be replaced?
January 10, 2019 at 10:02 am #101108
anikitin35ParticipantOk.
January 10, 2019 at 1:08 pm #101141
Eric WatsonParticipantHello,
We checked all the pages of links to which you provided and for us, the menu was replaced please check again.
http://prntscr.com/m5d8tf
http://prntscr.com/m5d8ysKind Regards
XTemos StudioJanuary 11, 2019 at 1:42 pm #101380
anikitin35ParticipantHello.
Thank you for help!
Best regards.
January 11, 2019 at 2:11 pm #101399
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: menu
- You must be logged in to create new topics. Login / Register