How to hide a "Block" in a post without h2 and h3 title?

I have a problem with the “Table of contents” element, can anyone help me?
How can I hide a “Block” when my post doesn’t have h2 and h3 headings, how can I set “CONDITIONS”?

Hello Lee,

To configure conditions you have to do it from this option in the Bricks interface:

imagen

In this video I show how to use Conditional Logic to Show and Hide Elements with Bricks.

Hello, Thanks, now I don’t know how to set the “conditions” to determine if the post has h2 and h3.

I found a solution, add Pseudo-classes “:before” to the “Table of contents”, also add “content”, it shows what I want before the “Table of contents”. And if the post doesn’t have h2,h3, the content in “:before” also hidden.

1 Like

Perfect! Thank you for showing the solution and so we learn more things.