Wrong enqueue url with Polylang different domain website
-
Hello,
I have multilingual website powered by Polylang with subdomain structure:
https://example.com/
https://fr.example.com/
https://ge.example.com/
and etc…While I used “The language is set from the subdomain name in pretty permalinks” setting Smart Slider worked fine.
Now I changed the setting to “The language is set from different domains” and fill in different urls for each locale:
https://example.com/
https://fr.example.com/
https://example-german.com/example.com and fr.example.com continue work fine. But on example-german.com Smart Slider’s style and scripts files enqueuing from example.com (and not from example-german.com like it should).
I think I found a solution in /wp-content/smart-slider-3/nextend/wordpress/libraries/uri/uri.php on line 9:
$this->uris[] = WP_PLUGIN_URL;
rewrote to:
$this->uris[] = plugins_url();
and this enqueued all of the Smart Slider’s js and css files on every domain correctly (including example-german.com).Can you please resolve the problem or give me any advice?
Thank you!
The topic ‘Wrong enqueue url with Polylang different domain website’ is closed to new replies.