Categoría: BRICKS BRICKS/ELEMENT/RENDER PRO
-
Conditional Rendering in Bricks Based on CSS Class
Updated on 19 Jun 2024 A user asks: Is there a way to apply the same conditions to several elements like we set styles appending a CSS class? I have a button with class .btn-accent with dynamic condition to check if a function is equal to 1.I’d like to set this same visibility conditions to…
-
Data Attribute-based Conditional Output in Bricks
In the Bricks Facebook group a user asks: Data Attribute as a Condition Is it possible to place a data attribute as an element condition, if yes, how? Before Bricks added the ability to set conditions on elements in the editor, we’d use bricks/element/render filter for the conditional output. This Pro tutorial shows how this…
-
Conditionally Outputting Query Loop Item Based on Post Meta in Bricks
Rendering query-loop enabled posts depending on the value of each post’s custom field value is tricky because by default, the custom field plugins’ functions or builder-functionality for fetching the custom field pulls the value of meta for the post (Post/Page/CPT/template etc.) in which the query loop element is present, not the individual posts in the…