Home Forums WoodMart support forum Mobile menu: support select any menu instead Main menu

Mobile menu: support select any menu instead Main menu

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #93127

    anikitin35
    Participant

    I 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!

    #93161

    Hello,

    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

    #93265

    anikitin35
    Participant

    Oh, 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.

    #93341

    Artem Temos
    Keymaster

    Hello,

    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

    #98672

    anikitin35
    Participant

    Dosn’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 );
    
    #98675

    Artem Temos
    Keymaster

    Please, send us this page link, write what menu you want to show there and your FTP access.

    #98728

    anikitin35
    Participant

    menu=1218

    #98745

    Artem Temos
    Keymaster

    We can’t connect with this data https://gyazo.com/152313619eb1fea88cc74e1e4526eae6

    #98963

    anikitin35
    Participant

    Hello. Please try now.

    #98982

    Artem Temos
    Keymaster

    Please, disable all external plugins (especially cache) and send us your admin access.

    #98997

    anikitin35
    Participant

    Cache is disabled for autorized users.

    #98998

    anikitin35
    Participant

    Friends, 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 menu

    #99007

    Artem Temos
    Keymaster

    Please, send us also a link to the page where menu need to be replaced?

    #101108

    anikitin35
    Participant

    Ok.

    #101141

    Eric Watson
    Participant

    Hello,

    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/m5d8ys

    Kind Regards
    XTemos Studio

    #101380

    anikitin35
    Participant

    Hello.

    Thank you for help!

    Best regards.

    #101399

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Tagged: 

Viewing 17 posts - 1 through 17 (of 17 total)