I am creating a website where for each post, I have to add a Javascript snippet inside the post, something like this:
<script src=”CODE HERE
I tried adding it via the HTML block, and when I preview it in the backend the Javascript runs normally. However, when I view the post in the frontend, it doesnt’show anything.
I’m wondering if there’s a way to add the Javascript code using hooks or generateblocks? Note that each post needs its own Javascript code. Maybe I can create a custom hook for each post? Is this possible?
Thank you so much for the help, really loving this theme and the support!