Forums
Forums / Plugin: WP Multilang - Translation and Multilingual Plugin / Widget WP Mulitilang
(@alvima)
8 years, 6 months ago
Hello,
I would like put the WP Multilang widget in my header instead of sidebar. For that I must call to the function the_widget() in the header.
I have added the following code:
the_widget( ‘WPM_Widget_Language_Switcher’, ‘title=’ );
But don’t work. Must I call the function with other parameters?
Thank you.
(@valexar)
For displaying language switcher in any place of a theme, You need to use function
if ( function_exists ( 'wpm_language_switcher' ) ) wpm_language_switcher ();
as it describe in the description of the plugin.
The topic ‘Widget WP Mulitilang’ is closed to new replies.