Title: [Plugin: Polylang] Organic Structure theme | Menus settings
Last modified: August 20, 2016

---

# [Plugin: Polylang] Organic Structure theme | Menus settings

 *  [Polms](https://wordpress.org/support/users/polms/)
 * (@polms)
 * [14 years ago](https://wordpress.org/support/topic/plugin-polylang-organic-structure-theme-menus-settings/)
 * Hi,
 * I’m using the Organic structure theme which include that: (in header.php)
 *     ```
       <div id="navbar">
       		<?php if ( function_exists('wp_nav_menu') ) { // Check for 3.0+ menus
       		wp_nav_menu( array('title_li' => '', 'depth' => 4,  'container_class' => 'menu') ); }
       		else {?>
       		<ul class="menu"><?php wp_list_pages('title_li=&depth=4'); ?></ul>
       		<?php } ?>
           </div>
       ```
   
 * I have tried to add change that to :
    `wp_nav_menu( array('title_li' => '', '
   depth' => 4, 'container_class' => 'menu', 'theme_location' => 'primary') ); }`
 * but the “menus” sections in the settings remain blank.
 * Any suggestion? Thanks for this great plugin.
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Polms](https://wordpress.org/support/users/polms/)
 * (@polms)
 * [14 years ago](https://wordpress.org/support/topic/plugin-polylang-organic-structure-theme-menus-settings/#post-2877076)
 * Anyone? Thanks
 *  [Stenbuk](https://wordpress.org/support/users/stenbuk/)
 * (@stenbuk)
 * [14 years ago](https://wordpress.org/support/topic/plugin-polylang-organic-structure-theme-menus-settings/#post-2877079)
 * Hi there,
 * I have the same problem, same theme.
    Help would be great
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [14 years ago](https://wordpress.org/support/topic/plugin-polylang-organic-structure-theme-menus-settings/#post-2877095)
 * Does your theme include something like:
 *     ```
       register_nav_menus( array(
       	'primary' => __( 'Primary Navigation', 'twentyten' ),
       ) );
       ```
   
 * in functions.php ?
 *  Thread Starter [Polms](https://wordpress.org/support/users/polms/)
 * (@polms)
 * [14 years ago](https://wordpress.org/support/topic/plugin-polylang-organic-structure-theme-menus-settings/#post-2877096)
 * Hi,
 * Thank you. The only part of our functions.php that mentions “nav” or “menu” is
   this one:
 *     ```
       // Add ID and CLASS attributes to the first <ul> occurence in wp_page_menu
       function add_menuclass($ulclass) {
       return preg_replace('/<ul>/', '<ul class="menu">', $ulclass, 1);
       }
       add_filter('wp_page_menu','add_menuclass');
       add_filter('wp_nav_menu','add_menuclass');
   
       // Add custom background
       if ( function_exists('add_custom_background') )
       add_custom_background();
   
       // Add navigation support
       if ( function_exists('add_theme_support') )
       add_theme_support( 'menus' );
       ```
   
 * But it doesn’t looks like that. If you need me to send you files I can.
 * Thanks anyway.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [14 years ago](https://wordpress.org/support/topic/plugin-polylang-organic-structure-theme-menus-settings/#post-2877097)
 * Polylang can filter the menus only if they are registered using the function 
   register_nav_menus as described above (twentyten example).
 * It is not at all good idea to directly call `add_theme_support( 'menus' );` in
   the theme. See [http://codex.wordpress.org/Function_Reference/add_theme_support#Notes](http://codex.wordpress.org/Function_Reference/add_theme_support#Notes)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Polylang] Organic Structure theme | Menus settings’ is closed
to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-polylang-organic-structure-theme-menus-settings/#post-2877097)
 * Status: not resolved