Conversation
supportHi 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 so the enqueue script path looks like http://website.com?lang=%5Blanguage-prefix%5D ?simplemap-… which breaks Hard-coding the enqueue script and replacing get_home_url() with ‘ http://website.com’ ; works, but obviously is a poor/hacky solution. Please advise. https://wordpress.org/plugins/simple-map/
No comments were stored for this source.