Title: Incorrect wp_footer() code output
Last modified: August 30, 2016

---

# Incorrect wp_footer() code output

 *  Resolved [Henk Verlinde](https://wordpress.org/support/users/ve6304/)
 * (@ve6304)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/incorrect-wp_footer-code-output/)
 * I am using [Sage](https://roots.io/sage/) as a starter theme. The footer contains`
   wp_footer();` just before the closing `</body>` tag.
 * This is how the source code of the footer looks like:
 *     ```
       <script type='text/javascript'>//<![CDATA[
       var leadin_wordpress={"userRole":"visitor","pageType":"home","leadinPluginVersion":"4.2.3"};
       //]]></script>
   
       <strong><scriptcrossorigin="use-credentials"</strong> src="//js.leadin.com/js/v1/1661776.js?ver=4.3.1"></script>
       ```
   
 * The part in bold s/b: `<script type='text/javascript' crossorigin="use-credentials"`
 * > Could you please fix this issue or help me out fixing it myself?
 * [https://wordpress.org/plugins/leadin/](https://wordpress.org/plugins/leadin/)

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

 *  Thread Starter [Henk Verlinde](https://wordpress.org/support/users/ve6304/)
 * (@ve6304)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/incorrect-wp_footer-code-output/#post-6595944)
 * Adding a space before **crossorigin** on line 88 of class-leadin.php fixes it:
 * `return str_replace(' src', ' crossorigin="use-credentials" src', $tag);`
 *  Thread Starter [Henk Verlinde](https://wordpress.org/support/users/ve6304/)
 * (@ve6304)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/incorrect-wp_footer-code-output/#post-6596028)
 * Please note that this is a blocking issue for a number of users – failing the
   plugin to work.
 * Check the source code of [leadin.com](http://www.leadin.com/) to see the space
   between segments error.
 *  [Shay](https://wordpress.org/support/users/sredmond/)
 * (@sredmond)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/incorrect-wp_footer-code-output/#post-6596039)
 * Hi Henk,
 * Thanks for reaching out and letting us know. We’re working on a fix for this 
   right now and should have an update for the plugin out shortly. I’ll let you 
   know as soon as it’s ready to download. From my testing just now, it looks like
   this shouldn’t be an issue in most themes, with browsers adding in a space automatically,
   but it’s likely that some more complex themes like Sage have a problem with it.
 * Thanks again for letting us know and for the detailed breakdown of your troubleshooting.
 *  [Shay](https://wordpress.org/support/users/sredmond/)
 * (@sredmond)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/incorrect-wp_footer-code-output/#post-6596111)
 * Hi Henk,
 * Just wanted to give you a heads up that we’ve just released version 4.3.0 of 
   the plugin which should resolve this issue. You should be able to update right
   from within Plugins in WordPress but if there are any issues or if this doesn’t
   solve it for you definitely let me know.
 * Thanks again,
    Shay
 *  Thread Starter [Henk Verlinde](https://wordpress.org/support/users/ve6304/)
 * (@ve6304)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/incorrect-wp_footer-code-output/#post-6596120)
 * Hi Shay,
 * You’re welcome and thank you for the quick update.
 * Regards,
    Henk

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

The topic ‘Incorrect wp_footer() code output’ 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

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [wp_footer](https://wordpress.org/support/topic-tag/wp_footer/)

 * 5 replies
 * 2 participants
 * Last reply from: [Henk Verlinde](https://wordpress.org/support/users/ve6304/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/incorrect-wp_footer-code-output/#post-6596120)
 * Status: resolved