Archived topic
Rule-Based Element Exclusion (Hero, Hook, Merge etc.) on Pages
5 replies · Started by sonuspre on October 25, 2021
I do not see a way to use rules in order to include/exclude elements on pages.
For example:
/services/a
/services/b
/services/c
I would like to know if there is a rule I can set to include/exclude specific elements in the backend.
Right now, I am manually doing this on a page-by-page basis.
Hi there,
Not sure I fully understand your question.
Can you explain some more?
Under appearance->elements
Can we use rules to include or exclude instead of the standard dropdown options
Hi there,
There are rules for custom post types, general taxonomy terms, and archives.
But for rules that aren't on the dropdown, you can achieve with PHP filter.
Please see our documentation about it here -
https://docs.generatepress.com/article/generate_element_display/
Ok - this will do. Thanks.
No problem. :D