• Resolved ebrissette

    (@ebrissette)


    This plugin looks like a great replacement for Widget Visibility plugins as we explore the move from Classic themes to Block Themes.

    One feature I’d like to suggest is to add a toggle for including Child pages in the rules–that is, applying a rule to a particular Page (or Term?) and its children. Our use case for this is to handle subsets of navigation for different areas of a website. We would prefer not to create many duplicates of a Page template with slight differences in sidebar content, for example.

    It looks like we could work around this using URL Path rules, but may be more prone to breaking in the case of a change of page slug somewhere in the page hierarchy.

    Thank you!

    • This topic was modified 3 months ago by ebrissette.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @ebrissette,

    I believe what you are looking for should be possible with the Relative Hierarchy conditions in the Location control. This allows you to display a block if the current page is a child of (or parent of) another specific page.

    That said, the plugin does not currently support conditions for hierarchical taxonomy archives. For example, you can’t display a specific block on an archive page if the current taxonomy term is a child of another. Something to consider for the future though.

    Best,
    Nick

    Thread Starter ebrissette

    (@ebrissette)

    Relative Hierarchy is exactly what I was looking for and missed. This is perfect, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.