22nd May '22/1 commentConditional Section when Post has a Featured Image in BricksSridhar Katakam This Pro tutorial provides the steps to output a Section in Bricks on single posts (of any post type) only if the post has a featured image. Step 1 Create a Template of the type Section named say, "Featured Image Section" and edit it with Bricks. Add a Section and place your desired content like a Heading and Image inside the Section's Container. Select Featured Image to be shown and select a suitable image size. Step 2 Edit the Template that applies the single view of your post type or a specific Page with Bricks. Add a Code element where you would like to conditionally output your featured image section. 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 633 Bricks code tutorials with BricksLabs Pro
Pro Day of Week Condition in BricksDisplaying elements conditionally based on the current day of the week.Read more →Categories: Bricks, ProTags: Conditions
JetEngine Checkbox Condition in BricksHow elements in Bricks can be conditionally output depending on the selected option from a JetEngine checkbox field.Read more →Categories: Bricks, Free, PluginsTags: JetEngine
Pro Meta Box Relationship in BricksUpdated on 19 Mar 2024 In BricksLabs' Facebook group a user asks: I have a Product (Metabox CPT) that is connected to a Creator (Metabox…Read more →Categories: Bricks, Plugins, ProTags: Conditions, Dynamic Data, Meta Box, Relationship
Pro Conditionally Outputting Query Loop Item Based on Post Meta in BricksRendering 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…Read more →Categories: Bricks, ProTags: bricks/element/render
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 Custom Conditions in Bricks BuilderUpdated on 22 Jun 2022 This Pro tutorial is a continuation of the previous Conditions in Bricks Builder tutorial. We are going to keep updating…Read more →Categories: Bricks, ProTags: Conditions
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 Getting Field Values from a Connected CPT when using Meta Box Relationship in BricksConditionally render elements in a single template of a CPT depending on the value of a regular custom field.Read more →Categories: Bricks, Plugins, ProTags: Conditions, Custom Functions, Meta Box
Conditionally Hide a Section on a Specific Taxonomy’s Term Archives in BricksA user asked: I have a CTA in the footer of my site, which I have custom fields on various templates, etc to populate. I…Read more →Categories: Bricks, FreeTags: Conditions