Title: theme_location value
Last modified: May 14, 2018

---

# theme_location value

 *  Resolved [aerir](https://wordpress.org/support/users/aerir/)
 * (@aerir)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/theme_location-value/)
 * I have a menu made using Elementor and trying to customized my WPML language 
   switcher. It needs the theme_location value but it is returning null, is there
   any other method to retrieve it?
 * I’m using this function to find output the theme_location
 *     ```
       // uncomment this to find your theme's menu location
       //echo "args:
       <pre>"; print_r($args); echo "</pre>
       ```
   
 *     ```
           [item_spacing] => preserve
           [depth] => 0
           [walker] => 
           [theme_location] => 
       )
       ```
   
    -  This topic was modified 7 years, 11 months ago by [aerir](https://wordpress.org/support/users/aerir/).
    -  This topic was modified 7 years, 11 months ago by [aerir](https://wordpress.org/support/users/aerir/).

Viewing 1 replies (of 1 total)

 *  [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/theme_location-value/#post-10277986)
 * [@aerir](https://wordpress.org/support/users/aerir/)
 * Elementor Nav Menu widget doesn’t use the `theme_location` property of the wp_nav_menu
   because the menu is inserted in the widget location and not in a specific theme
   location. But you can use either `menu_id` or `menu_name` in order to identify
   the correct menu and add the language links to it.
 * Please feel free to open an issue on our [Github Repo](https://github.com/pojome/elementor/issues/new/choose)
   with the code you have and I’ll try to help.

Viewing 1 replies (of 1 total)

The topic ‘theme_location value’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bainternet](https://wordpress.org/support/users/bainternet/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/theme_location-value/#post-10277986)
 * Status: resolved