• Resolved bambino82

    (@bambino82)


    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)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @bambino82,

    Please note that we are not affiliated with MailChimp.com. We are a different company “Ibericode” which has developed the plugin “MC4WP – MailChimp for WordPress’.

    Are you using our plugin and is the issue related to our plugin? If not, I would recommend contacting MailChimp.com. But if this issue is related to our plugin then please share a link where we can test this.

Viewing 1 replies (of 1 total)

The topic ‘https problem in code’ is closed to new replies.