Contact form script double loaded on different language (wpml)
-
Hello there,
I have installed contact form 7 and wpml along with w3 total cache.
On non-default language pages the contact form 7 javascript is being loaded twice. Once inside minified file and once as normal javascript:
https://monosnap.com/file/e3CiuMQoPuKVwBZxZWMrWlZR00WTlA
This is not happening on default language pages (the javascript is being loaded only inside minified javascript).As result, contact forms are being triggered twice each time submitted, thus giving error to submitter.
Please advice on how to fix this.
p.s. In functions file I’ve set that contact form 7 javascript file should be loaded only on pages where contact form appears (with wp_dequeue_script function).
- The topic ‘Contact form script double loaded on different language (wpml)’ is closed to new replies.