Home › Forums › Support › How to hide element hook in archive subpages – page/2/, page/3/ & so on This topic has 3 replies, 2 voices, and was last updated 4 years ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts May 26, 2019 at 6:46 am #911129 Manish Jassal Hi, I create a hook for my shop page but i don’t want that hook for shop sub pages like; page/2/, page/3/ & so on. So, pls tell me how can I disable that hook in shop archive sub pages. This is my shop page where i add the hook: https://www.sharesnappy.com/shop/ May 26, 2019 at 10:57 am #911407 LeoStaff Customer Support Hi there, Give this snippet a shot and replace 10 with the actual ID of the hook element: add_filter( 'generate_hook_element_display', function( $display, $element_id ) { if ( 10 === $element_id && is_paged() ) { $display = false; } return $display; }, 10, 2 ); Adding PHP: https://docs.generatepress.com/article/adding-php/ Let me know ๐ May 26, 2019 at 6:35 pm #911615 Manish Jassal It works. Thanks Leo for a great help. May 26, 2019 at 6:59 pm #911622 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