Support » Plugin: Menu Swapper » Please help – Menu swapper doesn't work on my site

  • Resolved Penelope01


    This is a great plugin , just what i need, easy to set up etc
    But it just doesnt work on my site.
    I have a beautiful simple website that works fine in English and I need to have a french version of it.

    I set up 2 menus, one in english (primary menu) and one in french following your excellent video. I assigned to french menu to one of my french pages to test it, but I still have the english menu showing on the page
    Here is the address of the french page :
    Anything that you can suggest that might help would be wonderful
    Many thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • is the contents of header.php on my theme

    theme_get_option(‘theme_menu_source’), ‘depth’ => theme_get_option(‘theme_menu_depth’), ‘menu’ => ‘primary-menu’, ‘class’ => ‘art-hmenu’ ) ); ?>

    The problem is with artisteer generated themes in the header.php the coding is not standard so the plugin doesn’t swap menus

    After much digging I came up with a solution, not elegant but it works.
    I put a tag fr on all my french pages.
    I added some code to the header.php in my theme where it calls the menu
    <?php if ( has_tag(fr) ) {

    echo theme_get_menu(array(
    ‘source’ => theme_get_option(‘theme_menu_source’),
    ‘depth’ => theme_get_option(‘theme_menu_depth’),
    ‘menu’ => ‘frmenu’,
    ‘class’ => ‘art-hmenu’
    } else {
    echo theme_get_menu(array(
    ‘source’ => theme_get_option(‘theme_menu_source’),
    ‘depth’ => theme_get_option(‘theme_menu_depth’),
    ‘menu’ => ‘primary-menu’,
    ‘class’ => ‘art-hmenu’
    ); };
    where frmenu is the french menu and primary menu is the english menu
    and it works !

    Plugin Author sevenspark


    Glad to hear you found a solution, Penelope! Yeah, if the theme doesn’t use theme_locations for the menu, then the plugin won’t do anything. By the way, another possibility to check out depending on your use case is the Conditional Menus plugin by themify ๐Ÿ™‚

    Conditional Menus



    Thanks Chris, for having a look at my problem.

    I’ll certainly try Conditional menus, but as I am using Artisteer to design my theme this plugin may not work either- none of the others that I tried worked.
    Anyway my menus work now and thats the main thing ๐Ÿ™‚

    Have a nice day

    I have the same problem. None of the custom menu plugins I’ve uploaded are working for my site. I am trying to update the header.php file but with no coding experience, I am at a loss. Penelope, how did you tag your pages?

    Any additional help with the code that I currently placed to include more than one menu would help too.

    Here is my code that I currently have:

    <?php wp_nav_menu( array(‘theme_location’ => ‘primary-menu’,’menu_id’ => ‘main-nav’,’menu_class’ => ‘sf-menu’)); ?>
    <?php wp_nav_menu( array(‘theme_location’ => ‘secondary-menu’,’menu_id’ => ‘main-nav’,’menu_class’ => ‘sf-menu’)); ?>
    <?php wp_nav_menu( array(‘theme_location’ => ‘third-menu’,’menu_id’ => ‘main-nav’,’menu_class’ => ‘sf-menu’)); ?>

    Should I be adding conditional logic here? If so how should it look like?

    Thank you for any help!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Please help – Menu swapper doesn't work on my site’ is closed to new replies.