19th Mar '23/2 commentsCondition to Check if the Current Category Has At Least One ChildSridhar Katakam Looking to render an element in the category archive Bricks template only if the category of the current category archive page is a parent? This Pro tutorial shows how. Add the following in child theme's functions.php (w/o the opening PHP tag) or a code snippets plugin: This is a BricksLabs Pro tutorial. For full access login below or create your BricksLabs Pro account Username Password Remember Me Forgot Password Tagged: BricksDynamic DataProWordPressSridhar 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
WooCommerce Product Loop Template in BricksCreate a standard product loop template design in Bricks, and set it to override the default WooCommerce product loop.Read more →Categories: Bricks, Free, PluginsTags: Dynamic Data, Template Overriding, WooCommerce
Mapping Bricks Templates to WordPress TemplatesAs of Bricks 1.5 RC, it is not possible to specify that a Page use a particular Bricks template without editing that Bricks template and…Read more →Categories: Bricks, FreeTags: Dynamic Data, Templates, WordPress Page Template
How to add a “Sold Out” badge for out of stock products in BricksLooking to add a "Sold Out" badge for products in the Shop page for WooCommerce products that are out of stock when using Bricks' Products…Read more →Categories: Bricks, Free, PluginsTags: Dynamic Data, WooCommerce
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
Month-based Background Image in BricksHow to have different background images for an element for different quarters in a year.Read more →Categories: Bricks, FreeTags: Dynamic Data
Bricks Condition for WishList MemberHow to render a Bricks element only if the user has access to a specified WishList Member level.Read more →Categories: Bricks, Free, PluginsTags: Conditions
Pro Query Variables Condition in BricksThis Pro tutorial provides the steps to register a custom function that returns true or false depending on whether the current page URL has specific…Read more →Categories: Bricks, ProTags: Conditions, Query Variables
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
Pro Check if the User Purchased Any of the Specified ProductsThis Pro tutorial provides the steps for setting up a dynamic data condition on any element in Bricks so it can be output only if…Read more →Categories: Bricks, Plugins, ProTags: Conditions, Dynamic Data, WooCommerce