Site logo

Archived topic

Feature Request: slug condition for Elements

8 replies · Started by Ash on January 8, 2023

Viewing posts 1–9 of 9

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.

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.

Hi 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 :)

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

Hi Leo,

Thank you.
Would be nice if you could implement this option to GUI in a future release.

Thanks 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!

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.

Thanks for your kind words!

This archived topic is closed to new replies.