Archived topic
How to JavaScript in the of a single page?
3 replies · Started by Philippe on July 26, 2022
Hi,
I would like to personalize the subscription Thank You page I created on my website.
Aweber says, "Enter the JavaScript located in the textbox below to your website in the <head> section of the web page."
To someone who does not very much at all like me, that means dozens of possible ways to go.
Which one is the right one?
Thank you,
Philippe
Hi there,
use a GP Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
1. Activate the Elements module in Appearance > GeneratePress
2. Add new Element -> Hook in Appearance > Elements
3. Add you code in the text field. Note your code should be inside <script> your code </script> tags
4. Set the Hook to wp_head
5. Set the Display Rules > location to the page you want it applied to.
Thank you very much!
You're welcome !