Add html-file onto home-page

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

Hi Eline,

Thanks for reaching out.

Do you have any documentation on what are you trying to add in your homepage? If yes, can you provide us the link so that we can help you to solve your issue. On the other hand, your script should work if you added it using the Raw content element.

Hope that helps and let us know.

Thank you.

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