Title: https problem in code
Last modified: May 6, 2020

---

# https problem in code

 *  Resolved [bambino82](https://wordpress.org/support/users/bambino82/)
 * (@bambino82)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/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)

 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/https-problem-in-code/#post-12792216)
 * Hey [@bambino82](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/https-problem-in-code/#post-12792216)
 * Status: resolved