Get access to all 633 Bricks code tutorials with BricksLabs Pro
Related Tutorials..
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:
[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:
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:
Pro
Day of Week Condition in Bricks
Displaying elements conditionally based on the current day of the week.
Categories:
Tags:
Conditional Output on the First Page of Archives in Bricks
How to output an element on an archive page only if we're on the first page of the archive.
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:
Pro
Conditional Output in Bricks based on if Content has Headings
How to prevent the output of the table of contents if the content has no headings.
Categories:
Tags:
Pro
Getting Field Values from a Connected CPT when using Meta Box Relationship in Bricks
Conditionally render elements in a single template of a CPT depending on the value of a regular custom field.
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: