Archived topic
Exclude Hook Elements from Pagination Pages
1 reply · Started by Zach on May 22, 2022
Hello,
I've added some custom HTML code in several different Hook elements (regular hook element not block), to each be shown on specific product category pages. But I'm trying to exclude these hook elements from showing up on subsequent pages of their respective category: page/2/, page/3/, page/4/, etc.
Just wondering how I can achieve this?
Thank you
Hi Zach,
Here is a code by Leo you may try to achieve as such: https://generatepress.com/forums/topic/how-can-i-hide-hook-in-archive-sub-pages/#post-911407
Getting the ID: https://share.getcloudapp.com/llu0RlWG
Further reference: https://docs.generatepress.com/article/generate_hook_element_display/
Hope this helps! Feel free to reach out if further assistance is needed. :)