Title: WPML Simplemap Compatibility Issue &#8211; enqueue script path
Last modified: August 22, 2016

---

# WPML Simplemap Compatibility Issue – enqueue script path

 *  [decisivedesign](https://wordpress.org/support/users/decisivedesign/)
 * (@decisivedesign)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wpml-simplemap-compatibility-issue-enqueue-script-path/)
 * Hi guys,
 * On a WPML enabled website, it appears that the Simplemap enqueue script path 
   breaks for multilingual.
 * wp_enqueue_script( ‘simplemap-master-js’, get_home_url() . ‘?simplemap-master-
   js=1&smpid=’ . $post->ID, array( ‘jquery’ ) );
 * get_home_url() for mulitilingual will look like [http://website.com?lang=%5Blanguage-prefix%5D](http://website.com?lang=%5Blanguage-prefix%5D)
 * so the enqueue script path looks like [http://website.com?lang=%5Blanguage-prefix%5D](http://website.com?lang=%5Blanguage-prefix%5D)
   ?
   simplemap-… which breaks
 * Hard-coding the enqueue script and replacing get_home_url() with ‘[http://website.com&#8217](http://website.com&#8217);
   works, but obviously is a poor/hacky solution.
 * Please advise.
 * [https://wordpress.org/plugins/simple-map/](https://wordpress.org/plugins/simple-map/)

The topic ‘WPML Simplemap Compatibility Issue – enqueue script path’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-map_1b95bb.svg)
 * [Simple Map](https://wordpress.org/plugins/simple-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-map/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-map/reviews/)

## Tags

 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 0 replies
 * 1 participant
 * Last reply from: [decisivedesign](https://wordpress.org/support/users/decisivedesign/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/wpml-simplemap-compatibility-issue-enqueue-script-path/)
 * Status: not resolved