Get access to all 633 Bricks code tutorials with BricksLabs Pro
Related Tutorials..
Pro
ACF Options Page Custom Field Conditional in Bricks
This Pro tutorial shows how we can set an element in Bricks to be output only if the value of a specific custom field on…
Categories:
Tags:
Pro
Conditionally Rendering an Element Outside the Loop based on Taxonomy Term in Bricks
A user asks: Hiding element based on taxonomy I have an element in a footer that I want to hide if a page has a…
Categories:
Tags:
[Function] Current Term Has Children
Updated on 20 Jul 2024 A user asks: I'm working on an archive template for WooCommerce products. I'm trying to hide a section if there…
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:
Pro
Showing a Popup conditionally in Bricks based on Query Parameter
Here's two ways a Bricks Popup can be shown on page load depending on URL parameter value.
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:
Pro
Check If The Latest Post Was Published in The Last X Minutes
In this Pro tutorial we shall define a custom function that takes in the number of minutes as an argument and returns true if there…
Categories:
Tags:
How to conditionally load your scripts based on an ACF field
This tutorial provides the PHP codes that can be pasted in order to enqueue your scripts conditionally based on the value of an ACF field…
Categories:
Tags:
Pro
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…
Categories:
Tags: