Hello,
I received a html-document to add to the homepage. I’m now testing on a test-site.
It has a very long script in its which I’ve added to the child theme’s functions.php using
add_action(‘wp_head’, ‘my_mixpanel_tracking’);
function my_mixpanel_tracking() {
?>
…
<?php
}
The body contains 2 divs, which I've added in a raw content element, and 1 very long <.script type="application/json" data-for="htmlwidget-2f1f545aa6780fca73c1"> and a short <.script type="application/htmlwidget-sizing" data-for="htmlwidget-2f1f545aa6780fca73c1">.
And that is where I'm stuck. I've tried adding the 2 scripts also into the raw element, or to the JS option but nothing happens.
Thanks for helping me.
Kind regards
Eline