Home › Forums › Support › Line of Code and a Hook This topic has 3 replies, 2 voices, and was last updated 3 years, 4 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts December 15, 2022 at 1:07 pm #2463376 Luke I want to install social sharing buttons on my site using the code. From what I know I can do it using a Hook, but I don’t know what it is. Here’s the code for the social sharing buttons to appear on my site: <script type=’text/javascript’ src=’https://platform-api.sharethis.com/js/sharethis.js#property=639b16dd4c3197001565625f&product=inline-share-buttons’ async=’async’></script> Can you tell me what to do to make these buttons appear on my site? December 15, 2022 at 1:13 pm #2463382 LeoStaff Customer Support Hi there, Tough for us to help by simply looking at the code. Did it come with any instructions? December 15, 2022 at 1:27 pm #2463393 Luke It’s from this site: https://platform.sharethis.com On the site it says: To activate, please add the code into the <head> section of your website. But one person who uses these buttons on their site said that if someone is using GeneratePress then they can install this code using a Hook? December 15, 2022 at 5:45 pm #2463533 LeoStaff Customer Support Yes. You can create a hook element and use the wp_head hook: https://docs.generatepress.com/article/hooks-element-overview/ https://docs.generatepress.com/article/wp-head/ 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