https problem in code
-
When i add the mailchimp form it outputs the following code on my page:
<script>(function() {function maybePrefixUrlField() { if (this.value.trim() !== '' && this.value.indexOf('http') !== 0) { this.value = "http://" + this.value; } } var urlFields = document.querySelectorAll('.mc4wp-form input[type="url"]'); if (urlFields) { for (var j=0; j < urlFields.length; j++) { urlFields[j].addEventListener('blur', maybePrefixUrlField); } } })();</script>As im using https, the website now gives errors due to the “http” in the code which should be “https”.
is there a way to fix this without having to alter the plugin code?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘https problem in code’ is closed to new replies.