← How to build a course platform

Lesson 5 of 9 *

Dynamic Pages with Bricks Builder Conditions

Completed 0 of 0 lessons

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.

Lessons Completed: 0 of 0
Rankbydesign
Review Your Cart
0
Add Coupon Code
Subtotal