Home › Forums › Support › Adding a Javascript script This topic has 3 replies, 2 voices, and was last updated 3 years, 2 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 16, 2023 at 8:36 am #2497708 vasu Hi! Can I add a Javascript script to Code Snippets and will it work if I do? It’s a script I have to install globally in the header. Thanks! January 16, 2023 at 9:29 am #2497775 DavidStaff Customer Support Hi there, you can use a GP Hook Element: https://docs.generatepress.com/article/hooks-element-overview/ 1. Go to Appearance > GeneratePress and activate the Elements module. 2. Go to Appearance > Elements -> Add New –> Hook Element. 3. Add your <script> in the text area 4. Set the Hook to wp_head 5. Set the Display Rules -> Location to Entire Site January 19, 2023 at 8:01 pm #2502281 vasu Thank you! January 20, 2023 at 3:32 am #2502627 DavidStaff Customer Support You’re welcome Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In