Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author shelkie

    (@shelkie)

    Sorry, that’s not possible right now.

    Hi,

    I figure out that maybe it has change since 5 months. I actually have an existing website and want to add into it a microsite with a different theme and different header navigation menu. is it possible with this plugin?

    Plugin Author shelkie

    (@shelkie)

    No, this plugin currently doesn’t allow each domain to have different menus

    Thanks,
    Do you have any advice to solve my problem?
    Cheers

    You could use the same theme and switch out the menu based on a simple token variable.

    Set up a token in the MiniMU options to filter from, in this example I’ve used ‘language’ as the token name and ‘spanish’ as the variable:
    https://cloud.shanerounce.com/image/32160l393d1c

    Next, configure your menu names to work with token variables. ‘menu’ will work as default, ‘menu_spanish’ will work on domains with ‘spanish’ set as the language token variable.
    https://cloud.shanerounce.com/image/1u1K0j3C3Q0m

    Then, drop this code where ever you want the menu to appear in your theme:

    <?php
    $token = MiniMU::get_token('language'); // Change language to your token variable.
    if ($token == '') { $menuToken = ''; } else { $menuToken = '_' . $token; };
    $defaults = array(
    	'menu'            => 'menu' . $menuToken,
    	'menu_class'      => 'nav-classes',
    	'echo'            => true,
    	'fallback_cb'     => 'wp_page_menu',
    	'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>'
    );
    wp_nav_menu( $defaults );
    ?>

    Let me know if this works for you. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘multiple menu’ is closed to new replies.