• Resolved Hozefa Saleh

    (@hozefasmile)


    Hi @ndiego , can we have one more condition feature in your plugin? Condition based on parent class.

    For example if parent container have class “active” then show the block , otherwise hide? It can be put like this

    Condition Name : Parent Class or ID

    Parent container Class or ID (input field to put name of the class or id => .active, #active

    switch to show or hide

    This will be helpful in some special kind of blocks where classes added dynamically to parent block on various actions like click, mouseover etc.

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @hozefasmile,

    Thanks for reaching out and I apologize for the delayed reply. I don’t have any current plans to support this functionality in Block Visibilty. That said, the codebase is available on GitHub if anyone wants to explore adding this functionality.

    That said, Block Visibility is not well setup to handle dynamic content like you are looking for. You will probably need a JavaScript-based solution.

    Best,
    Nick 

Viewing 1 replies (of 1 total)

The topic ‘parent class based condition’ is closed to new replies.