JavaScript duplicated in wp_footer

Hello!

I have a problem with my child theme:
Two javascript codes are dupplicated by no reason in the wp footer.
I deactivated all plugins, it didn’t solve the problem.
When I activate the Pro Theme the problem is gone.
Reactivating the child theme brings the problem back.

Can you help me, please?
I have no idea how to solve this issue.

The url is: https://unverpackt-lorsch.de/

<script type='text/javascript'>
jQuery(document).ready(function() {window.BorlabsCookie.init({"ajaxURL":"https:\/\/unverpackt-lorsch.de\/wp-admin\/admin-ajax.php","codeCookieFirstParty":"","codeCookieThirdParty":"","codeFacebookPixel":"","cookieBoxBlocks":true,"cookieBoxShow":"automatic","cookieLifetime":365,"cookieLifetimeOption2":365,"cookieLifetimeOption3":365,"cookieRespectDoNotTrack":true,"cookiesForBots":true,"executeFirstPartyCodeOnThirdParty":true,"facebookPixelId":"","googleAnalyticsId":"","hideCookieBoxOnPage":["https:\/\/unverpackt-lorsch.de\/datenschutzerklaerung"]});});
jQuery(document).ready(function() {window.BorlabsCookie.init({"ajaxURL":"https:\/\/unverpackt-lorsch.de\/wp-admin\/admin-ajax.php","codeCookieFirstParty":"","codeCookieThirdParty":"","codeFacebookPixel":"","cookieBoxBlocks":true,"cookieBoxShow":"automatic","cookieLifetime":365,"cookieLifetimeOption2":365,"cookieLifetimeOption3":365,"cookieRespectDoNotTrack":true,"cookiesForBots":true,"executeFirstPartyCodeOnThirdParty":true,"facebookPixelId":"","googleAnalyticsId":"","hideCookieBoxOnPage":["https:\/\/unverpackt-lorsch.de\/datenschutzerklaerung"]});});
</script>
<script type='text/javascript'>
/* <![CDATA[ */
var wpcf7 = {"apiSettings":{"root":"https:\/\/unverpackt-lorsch.de\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Bitte best\u00e4tige, dass du keine Maschine bist."}}};
var wpcf7 = {"apiSettings":{"root":"https:\/\/unverpackt-lorsch.de\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Bitte best\u00e4tige, dass du keine Maschine bist."}}};
/* ]]> */
</script>

var wpcf7 = {"apiSettings":{"root":"https:\/\/unverpackt-lorsch.de\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Bitte best\u00e4tige, dass du keine Maschine bist."}}};
var wpcf7 = {"apiSettings":{"root":"https:\/\/unverpackt-lorsch.de\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Bitte best\u00e4tige, dass du keine Maschine bist."}}};

Would you mind sending us a copy of the child theme? You could upload it somewhere (Dropbox?) and post the link in a secure note. Or you could just copy the contents of functions.php into a reply. We can take a look and try to see what’s going on.

Hej Alexander,

thank you for the reply.
I added a secure note with the link to the child theme.
But I tried to solve the problem with an empty function.php – but failed.
Looking forward hearing from you.

Best wishes
Carlo

Hi @carlomue,

I checked and it’s due to your existing custom wp-footer.php, it’s an old one which is only applicable from the version it was created for.

Please remove this file from your child theme,

/framework/views/icon/wp-footer.php

The wp_footer action is called twice (new footer system + the old footer template).

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.