Home › Forums › Support › Disable GP Hooks on Homepage This topic has 3 replies, 2 voices, and was last updated 6 years, 8 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts August 1, 2017 at 3:34 pm #358301 Fernando Hello Tom I’m using GP hooks After Entry Title to add a google adsense After title of all post I want to disable this in Homepage, Is it correct this code? <?php if ( ! is_home() ) : ?> Adsense Code <?php endif; ?> How to disable in all Pages (Only display on post)? Thanks August 1, 2017 at 6:18 pm #358368 LeoStaff Customer Support Hi there, If you are using a static home page then what you need is is_front_page(). See example here: https://codex.wordpress.org/Conditional_Tags#The_Blog_Page To only show in post, you would need the is_single() tag. See more info here: https://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page Let me know if this answers your question. August 1, 2017 at 6:52 pm #358375 Fernando Thank you Leo I use <?php if ( is_single() ) : ?> to only show in post 😀 August 1, 2017 at 7:24 pm #358381 LeoStaff Customer Support No problem! 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