โ† How to build a course platform

Dynamic Pages with Bricks Builder Conditions

You do not have permission to reset course progress.

How to Use Bricks Builder Conditions for Custom Post Types

Bricks Builder conditions make it easy to manage how your content is displayed by setting specific rules. For example, when creating templates for custom post types like video lessons, conditions allow you to dynamically show or hide elements based on fields youโ€™ve filled out. This keeps your design flexible and ensures only relevant content is displayed.

To attach a template to a custom post type, youโ€™ll need to go into the templateโ€™s settings, add a condition, and specify the post type youโ€™re working with. For example, you might set the condition to display your template only for โ€œVideo Classes.โ€ This step ensures that your design structure applies to the right content.

Here is a refreshed list for the custom fields we need:

Label Name Type
Head1 head1 Text
Head2 head2 Text
Content content WYSIWYG Editor
Link1 link1 Link
Linktext1 linktext1 Text
MainPoints mainpoints WYSIWYG Editor
ButtonUrl buttonurl Link

 

You can take it further by using dynamic data conditions to control individual sections or buttons. For instance, you can hide sections when certain fields are empty or show them only if a specific button URL is provided. These advanced uses let you repurpose templates for various needs, like thank-you pages or course overviews, all within the same framework.

Lesson Overview

Main Points

โˆš Attach templates to custom post types
โˆš Use conditions to control visibility
โˆš Show or hide sections dynamically
โˆš Repurpose templates for various content

Lesson Resources

Bricks Conditions (developers site)

Premium Content

Subscribe today for premium content.

Next Lesson
Rankbydesign
Review Your Cart
0
Add Coupon Code
Subtotal