Get access to all 630 Bricks code tutorials with BricksLabs Pro
Related Tutorials..
Check if a given category has at least one post
There could be situations where you want to check if a given category (by its slug) has at least 1 post assigned to that category.…
Categories:
Tags:
JetEngine Checkbox Condition in Bricks
How elements in Bricks can be conditionally output depending on the selected option from a JetEngine checkbox field.
Categories:
Tags:
Condition for Checking Current Post Category in Bricks
How we conditionally display an element based on the current post's categories.
Categories:
Tags:
Pro
Conditional Section when Post has a Featured Image in Bricks
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…
Categories:
Tags:
Conditionally Outputting Elements only for Posts that have a Specific Taxonomy Term
Using the core WordPress has_term() function for checking if the current post has a specific term of a given taxonomy.
Categories:
Tags:
Weekday Condition in Bricks
As of Bricks 1.7, the built-in "Weekday" condition does not work correctly. This is most likely due to it not taking the site's timezone (set…
Categories:
Tags:
Pro
User Role Condition in Bricks
This Pro tutorial provides the steps to conditionally output elements depending on the currently logged-in user's role. Step 1 Create a section Template having the…
Categories:
Tags:
Pro
Conditional CSS Classes based on Bricks Query Count
In a Bricks project I am currently working on, there are nested query loops - team members inside departments on a Page. Each team member…
Categories:
Tags:
Is WooCommerce Cart Empty Condition in Bricks
Updated on 5 Nov 2024 Looking to conditionally render an element depending on whether the user's cart is empty or not when using WooCommerce? Add…
Categories:
Tags: