My problem is that I have used a plugin called polylang and now it doesnät work with another more importent plugin so I need to find a solution. I use WPML on other sites and that is not an option here so you know.
I allready have all posts and pages translated and I just want to use one menu in Swedish and one in English. No changes in permalinks what so ever.
I found a solution in this post How to change menu according to the language? but I can’t get it to work. Not sure that post is still active or the solution works with WP 3.6 so I ask again for any help.
This is the menu code from the halifax theme
from the header
<?php wp_nav_menu( array( 'container_id' => 'submenu', 'theme_location' => 'primary','menu_id'=>'web2feel' ,'menu_class'=>'sfmenu','fallback_cb'=> 'fallbackmenu' ) ); ?>
code from the functions.php
register_nav_menus( array(
'primary' => __( 'Primary Navigation', '' ),
) );
function fallbackmenu(){ ?>
<div id="submenu">
<ul><li> Go to Adminpanel > Appearance > Menus to create your menu. You should have WP 3.0+ version for custom menus to work.</li></ul>
</div>
Solved it with
add_meta_box
infunctions.php
. Here is my code:In
header.php
: