Get access to all 632 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:
Checking if the current post has been published within the last x days
Conditionally output an element if the current post has been published in the last x number of days.
Categories:
Tags:
Pro
Checking if the current Page/Post has Children i.e. is a Parent in Bricks
Shows how we can check whether the current Page or Post (of any hierarchical post type) is a parent
Categories:
Tags:
Pro
Data Attribute-based Conditional Output in Bricks
Showing how to prevent rendering any elements that have a specific data attribute set.
Categories:
Tags:
Pro
Check if the User Purchased Any of the Specified Products
This Pro tutorial provides the steps for setting up a dynamic data condition on any element in Bricks so it can be output only if…
Categories:
Tags:
Pro
Day of Week Condition in Bricks
Displaying elements conditionally based on the current day of the week.
Categories:
Tags:
Pro
Restrict Content Pro in Bricks
This Pro tutorial provides the steps to restrict Pages and individual elements like Sections in Bricks depending on whether the current user has any active…
Categories:
Tags:
Create A Customizable AJAX Add To Cart Button In Bricks Builder
In Bricks, you can simply create an Add To Cart button from a dynamic data / function {woo_add_to_cart}. This button supports AJAX as well if…
Categories:
Tags:
Pro
Conditionally outputting an element in a Query Loop based on date-type custom field
This Pro tutorial shows how to output an element in a Bricks' query loop only if the value of a date-type of custom field for…
Categories:
Tags:
