- This topic has 8 replies, 4 voices, and was last updated 3 years, 3 months ago by
Leo.
-
AuthorPosts
-
January 8, 2023 at 3:24 pm #2488254
Ash
Please add an display rule to the Elements to match page slug/uri.
Pages dynamically created that’s not a cpt or a taxonomy can not be assigned.January 8, 2023 at 3:47 pm #2488259Leo
StaffCustomer SupportHi there,
Specific conditions that cannot be set by the Display Rules should be handled by the filter:
https://docs.generatepress.com/article/generate_element_display/You just need to find the correct WP conditional tags:
https://codex.wordpress.org/Conditional_TagsLet me know if this helps 🙂
January 10, 2023 at 4:10 am #2489942mkjj
This is an absolutey awesome option for finetuning the elements feature. Do you think that overriding a display rule with a filter will have negative effects on performance? While I really love elements, I’m always a little bit hesitant to avoid any effects on page load. So far, I haven’t noticed anything to worry about.
January 10, 2023 at 6:14 am #2490073David
StaffCustomer SupportHi there,
no, using the filter for simple conditons won’t make any noticeable difference to the elements loading performance. As long as you’re not running some real complex query to pass to the filter then all is ok 🙂
January 10, 2023 at 6:18 am #2490077mkjj
Hi David,
glad to hear, thank you very much. I don’t think that I am good enough to write such complex queries. 🙂 I’m looking forward an exciting new year with the Generatepress support team.
Thanks, Mike
January 10, 2023 at 7:09 pm #2490822Ash
Hi Leo,
Thank you.
Would be nice if you could implement this option to GUI in a future release.January 11, 2023 at 3:50 am #2491168David
StaffCustomer SupportThanks for the feedback guys it is much appreciated.
Elements Display Rules logic is under review, but its a super complicated system so adding or modifying it is not easy. But we’ll see what we can do!
January 11, 2023 at 4:15 am #2491207mkjj
Elements Display Rules logic is under review, but its a super complicated system so adding or modifying it is not easy. But we’ll see what we can do!
I’m sure you will do the right thing. I absolutely understand that less experienced users would prefer a GUI for each and every possible feature. However, the advanced system of hooks and filters is a great strength of Generatepress, in my humble opinion. It is so powerful and super versatile, while not bloating the GP backend. For me, GP provides the perfect balance. And I don’t say this lightly.
January 11, 2023 at 11:52 am #2491867Leo
StaffCustomer SupportThanks for your kind words!
-
AuthorPosts
- The topic ‘Feature Request: slug condition for Elements’ is closed to new replies.