• I am using 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://www.ads-software.com/plugins/leadin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Henk Verlinde

    (@ve6304)

    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

    (@ve6304)

    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 to see the space between segments error.

    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.

    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

    (@ve6304)

    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.