Home › Forums › Support › can gp hooks add a javascript at the post level This topic has 3 replies, 2 voices, and was last updated 7 years, 3 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 7, 2017 at 8:01 am #329894 Ashley Gainer Non-coder here! I need to add a script tag at the post level. Is this something I can do with hooks, and if so… would I put it in After Content? If I put it there, will the script tag also go onto pages? (I want it to go only on posts.) Thanks for any help! June 7, 2017 at 8:45 am #329947 LeoStaff Customer Support Hi there, Which hook you should use depends on where you want the content to show up: https://docs.generatepress.com/article/hooks-overview/ http://demo.generatepress.com/hook-locations/ Then you would wrap it with conditional tag so it’s single post only: <?php if ( is_single() ) { ?> script here <?php } ?> June 8, 2017 at 7:32 am #330478 Ashley Gainer thank you!! June 8, 2017 at 8:25 am #330512 LeoStaff 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