Language Switcher loads CSS files from an old URL

If the CSS files of the language switcher are loading from an old URL after moving the website follow the steps below:

  • Go to “WordPress Dashboard > Support > Troubleshooting”.
  • Click the “Clear the cache in WPML” button.

The same thing is available via wp-cli command below:

wp wpml clear-cache

The command above is available in WPML 4.4.11 and above.