Site logo

[Resolved] Feature Request: slug condition for Elements

Home Forums Support [Resolved] Feature Request: slug condition for Elements

Home Forums Support Feature Request: slug condition for Elements

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.

    #2488259
    Leo
    Staff
    Customer Support

    Hi 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_Tags

    Let me know if this helps 🙂

    #2489942
    mkjj

    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.

    #2490073
    David
    Staff
    Customer Support

    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 🙂

    #2490077
    mkjj

    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

    #2490822
    Ash

    Hi Leo,

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

    #2491168
    David
    Staff
    Customer Support

    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!

    #2491207
    mkjj

    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.

    #2491867
    Leo
    Staff
    Customer Support

    Thanks for your kind words!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Feature Request: slug condition for Elements’ is closed to new replies.