Home › Forums › Support › How to remove the before content hook on home page? This topic has 5 replies, 2 voices, and was last updated 6 years, 2 months ago by Leo. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts February 17, 2018 at 9:09 am #498970 fspahn I would like to have the before content hook show on single page posts only but not on the home page. Is there a way to remove the hook on the home page? February 17, 2018 at 11:23 am #499050 LeoStaff Customer Support This should help: https://docs.generatepress.com/article/using-hooks-conditional-tags/#single-posts February 17, 2018 at 2:44 pm #499132 fspahn Which file do I paste the code into? I tried the single.php file but it didn’t work… thanks February 17, 2018 at 5:37 pm #499211 LeoStaff Customer Support It goes directly into the before content hook space. Just need to make sure execute PHP is checked. February 18, 2018 at 5:47 am #499434 fspahn Thanks! February 18, 2018 at 7:09 am #499567 LeoStaff Customer Support No problem! Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In