WPML

Overview of the Issue

Add the following code in the footer.php file:

PHP
do_action( 'wpml_add_language_selector' );

It should display the language switcher, but nothing is shown instead.

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

  1. Open this file: sitepress-multilingual-cms/inc/template-functions.php
  2. Move to line 989: you must see the following code:
    PHP
    function wpml_add_language_selector_filter() {
    	global $sitepress;
    
    	return $sitepress->get_language_selector();
    }
  3. Replace return $sitepress->get_language_selector(); with echo $sitepress->get_language_selector();
  4. Save the file

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.