17th Jun '22/0 comments/FavoriteCustom Conditions in Bricks BuilderSridhar Katakam Updated on 22 Jun 2022 This Pro tutorial is a continuation of the previous Conditions in Bricks Builder tutorial. We are going to keep updating this article with sample code for various useful conditions over time. List of display conditions covered in this article: Product on backorder? Locale URL has String Don't output after (or) Expires on Output between beginning date[time] and ending date[time] Output after date[time] This is a BricksLabs Pro tutorial. For full access login below or create your BricksLabs Pro account Username Password Remember Me Forgot Password Tagged: BricksConditionsProSridhar KatakamSridhar Katakam is a Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.Get access to all 526 Bricks code tutorials with BricksLabs Pro
Pro Conditional Rendering in Bricks Based on CSS ClassUpdated on 19 Jun 2024 A user asks: Is there a way to apply the same conditions to several elements like we set styles appending…Read more →Categories: Bricks, ProTags: bricks/element/render
Pro Checking if the current Page/Post has Children i.e. is a Parent in BricksShows how we can check whether the current Page or Post (of any hierarchical post type) is a parentRead more →Categories: Bricks, ProTags: Conditions
Pro Conditional Output in Bricks based on if Content has HeadingsHow to prevent the output of the table of contents if the content has no headings.Read more →Categories: Bricks, ProTags:
Pro Conditional Related Posts in BricksHow to output a section only if there is at least 1 related post for the current post being viewed.Read more →Categories: Bricks, ProTags: Conditions, Related Posts
Conditions in Bricks BuilderThe current version of Bricks does not have a built-in Conditions feature but that does not mean we can't set them up manually with custom…Read more →Categories: Bricks, FreeTags: Conditions
Pro Conditional Section when Post has a Featured Image in BricksThis Pro tutorial provides the steps to output a Section in Bricks on single posts (of any post type) only if the post has a…Read more →Categories: Bricks, ProTags: Conditions
Checking for ACF Repeater Rows in BricksBricks enables us to conditionally output elements if a ACF field of basic type like Text has value by selecting it in the Dynamic data…Read more →Categories: Bricks, Free, PluginsTags: ACF, ACF Repeater, Conditions, Dynamic Data
Pro How to Insert Element(s) Between Query Loop Posts in BricksUpdate on 16 Aug 2023: Follow this tutorial instead. This Pro tutorial shows how we can insert a Div (or any custom HTML) after nth…Read more →Categories: Bricks, ProTags: Conditions, Dynamic Data, Query Loop
Pro Conditional single post Bricks template based on internal referrer URLHow to automatically select a single post template depending on the page from which the post is accessed.Read more →Categories: Bricks, ProTags: bricks/active_templates