WPML compatibility issue | WordPress.org

WPML can modify the return value of get_home_url() to include the current language slug (e.g. http://www.domain.com/en/). In this case, the base URLs used by lightbox-photoswipe to determine if the file is local or not do not work, since the path to the image does not include the language slug. The solution proposed my WPML developers to get the site URL without the slug is to use get_option('home') (https://wpml.org/forums/topic/get_optionsiteurl-returns-the-language-site-url-not-the-wp-url/).

Appears to be this commit which created the problem: https://github.com/arnowelzel/lightbox-photoswipe/commit/01d1d71b8b391dbf71a334f1f991332d14096b3a

  • This topic was modified 4 hours, 29 minutes ago by MarcGuay.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer