Title: https mixed content
Last modified: August 22, 2016

---

# https mixed content

 *  Resolved [bison_man](https://wordpress.org/support/users/bison_man/)
 * (@bison_man)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-mixed-content/)
 * Awesome plugin, thanks! I tried implementing SSL/HTTPS and I get mixed content
   warnings for admin-ajax.php until I deactivate LeadIn. As soon as I activate 
   it again I get the warnings. Chrome keeps pointing me to jquery.js in the console.
   Is it possible that something in the plugin is forcing back to http? Any help
   would be greatly appreciated because I want to keep LeadIn active!
 * Thank you
 * [https://wordpress.org/plugins/leadin/](https://wordpress.org/plugins/leadin/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Andy Cook](https://wordpress.org/support/users/andygcook/)
 * (@andygcook)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-mixed-content/#post-5218841)
 * Hi bison_man –
 * Sorry about this issue and thanks for reporting it to us. The mixed content warning
   is actually a known bug that we’re rolling out a patch for in the next version,
   which is hopefully going live early next week. I’ll make sure to circle back 
   here once we have the fix live in the plugin directory.
 * Thanks for the positive words too! It’s feedback like your’s that fuels our team
   to keep improving the product.
 * Cheers,
    – Andy
 *  [Justin Downey](https://wordpress.org/support/users/jdm-labs/)
 * (@jdm-labs)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-mixed-content/#post-5218943)
 * I’m sure Andy’s team will get this sorted for you, but in the meantime, you could
   hard-code it into the plugin itself.
 * 1. Locate leadin/inc/class-leadin.php
 * 2. On line 52, comment out the code beginning wp_localize_script
 * 3. Add the following just below it:
 *     ```
       if(is_ssl()) {
       wp_localize_script('leadin-tracking', 'li_ajax',
       array('ajax_url' => 'https://{your domain name}/wp-admin/admin-ajax.php'));
       } else {
       wp_localize_script('leadin-tracking', 'li_ajax',
       array('ajax_url' => 'http://{your domain name}/wp-admin/admin-ajax.php'));
       }
       ```
   
 * Far from a proper fix (you should never normally edit plugins directly) it works
   well enough.
 * When Andy’s team updates the plugin, it’ll overwrite this hack with their (I’m
   sure) far more elegant solution.
 *  Thread Starter [bison_man](https://wordpress.org/support/users/bison_man/)
 * (@bison_man)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-mixed-content/#post-5218946)
 * Thanks Justin. That worked like a charm. I really appreciate it. And I learned
   something knew. Bonuses all over for a Friday!
 *  [Andy Cook](https://wordpress.org/support/users/andygcook/)
 * (@andygcook)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-mixed-content/#post-5218947)
 * [@justin](https://wordpress.org/support/users/justin/) – thanks for the providing
   a temporary fix for bison_man – you rock!
 * We actually have a bug patch in place for this issue which will be included in
   the next version of the plugin rolling out this evening or early tomorrow.
 * Thanks for the patience guys and the ongoing support. We’re psyched to have you
   onboard.
 *  [Andy Cook](https://wordpress.org/support/users/andygcook/)
 * (@andygcook)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/https-mixed-content/#post-5218956)
 * We included a fix for this issue in Leadin 2.0.1.
 * I see you already marked this ticket as resolved, but I wanted to let you know
   anyways in case you wanted to upgrade to the latest version.
 * Thanks again for your patience!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘https mixed content’ is closed to new replies.

 * ![](https://ps.w.org/leadin/assets/icon-256x256.png?rev=3041936)
 * [HubSpot All-In-One Marketing - Forms, Popups, Live Chat](https://wordpress.org/plugins/leadin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leadin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leadin/)
 * [Active Topics](https://wordpress.org/support/plugin/leadin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leadin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leadin/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 5 replies
 * 3 participants
 * Last reply from: [Andy Cook](https://wordpress.org/support/users/andygcook/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/https-mixed-content/#post-5218956)
 * Status: resolved