This topic has 5 replies, 3 voices, and was last updated 1 months ago ago by Andrew Mitchell
Hi,
in order to add a klarna-placement shortcode to the woocommerce cart page and have it actually visually appear, Klarna documentation states that I need to add a script to our website, just after the opening BODY tag. How do I best do this? Where can I find the option to add code?
Hi @Bas Kling,
Please try adding the following code under functions.php file locates in your child theme:
add_action('wp_body_open', 'n2t_wp_body_open');
function n2t_wp_body_open(){
?>
<script
async
data-environment="production"
src="https://js.klarna.com/web-sdk/v1/klarna.js"
data-client-id=""
></script>
<?php
}
Hope it helps!
URGENT: read info in private
Hi @Bas Kling,
We’ve removed the key per your request!
Best Regards,
The 8Theme Team.
Dear Bas Kling,
We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.
Click here to rate now: https://themeforest.net/downloads
Thank you sincerely for your ongoing support!
Best Regards,
The 8Theme Team
The issue related to '‘Enter script code inside and just after BODY tag’' has been successfully resolved, and the topic is now closed for further responses