• Resolved alaskafox

    (@alaskafox)


    Hi,
    I’ve had a look back through a lot of threads on here, and tried some of the solutions given, but the header menu is still staying as the English menu despite switching languages.

    One of the solutions (changing theme_location to primary) gave just “Home” on English site, but all the English and French top level pages on the French menu, so it seemed like I was getting close.

    Here is what’s in my header.php file:

    <?php wp_nav_menu(array(
    				    'container'       => 'div',
    						'container_class'	=> 'main-nav',
    						'fallback_cb'	  =>  'responsive_fallback_menu',
    						'theme_location'  => 'header-menu')
    					);
    				?>

    And in functions.php:

    register_nav_menus(array(
    			'top-menu'         => __('Top Menu', 'responsive'),
    	        'header-menu'      => __('Header Menu', 'responsive'),
    	        'sub-header-menu'  => __('Sub-Header Menu', 'responsive'),
    			'footer-menu'      => __('Footer Menu', 'responsive')
    		    )
    	    );

    I’m sure it’s only a small thing to get it working, but I’ve been trying for the past hour or so to no joy!
    Thanks very much.

    https://www.ads-software.com/plugins/polylang/

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

    (@chouby)

    Responsive is a supported theme (so no need to try modifying the code). And until now I did not reproduce such issue. Your polylang settings and a link would help. Also could you tell me which name you gave to your menus?

    Thread Starter alaskafox

    (@alaskafox)

    It’s a test site we’re building, so have heavily edited the layout of the theme’s homepage. However, the menu options haven’t been touched at all.

    I have created new Header Menus for both French and German (as well as English), called “Header Menu French” and “Menu (German)”, but neither is showing up.

    In the Polylang Settings, the following items are checked:
    -Detect Broswer Language
    -Language set from content
    -Remove /language/ permalinks
    -Hide URL language for default language
    -Activate media
    -All of the synchronization settings

    This is the link:
    https://tinyurl.com/m56uo3e

    Plugin Author Chouby

    (@chouby)

    I wonder. Could you tell me if categories and post tags translation work correctly? Polylang uses a custom table (wp_termmeta) in database for the translation of categories, post tags and nav menus. Maybe it was not correctly created in your installation.

    Thread Starter alaskafox

    (@alaskafox)

    I will try un-installing and re-installing the plugin to see does it work. Perhaps that will re-create the table in the database.

    Thread Starter alaskafox

    (@alaskafox)

    Uninstalling and reinstalling the plugin worked. Thanks for your help Chouby. It’s a fantastic plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Polylang – Header Menu not changing languages on Responsive Theme’ is closed to new replies.