adding multisite language switcher to my thesis header
-
Hello, and thank you for a WONDERFUL Plugin..
I am currently using this code to add the language switcher to my nav menu and it is working great… :
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
/* adding multisite language switcher to main menu */ function my_custom_menu_item( $items, $args ) { if ( class_exists( 'MslsOutput' ) && 'primary' == $args->theme_location ) { $obj = new MslsOutput; $arr = $obj->get( 2 ); if ( !empty( $arr ) ) { $items .= ' <li>' . implode( '</li> <li>', $arr ) . '</li> '; } } return $items; } add_filter( 'wp_nav_menu_items', 'my_custom_menu_item', 10, 2 );
I would like to be able to add it to other areas using thesis hooks …
can you please tell me the code to use? i do apologise for any inconvenience, I tried changing the ‘wp_nav_menu_items’ with for example ‘thesis_hook_header’ but it didn’t appear to work…
thank you!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘adding multisite language switcher to my thesis header’ is closed to new replies.