50% discount on BricksLabs Pro Membership Lifetime Access. Use coupon: GOBRICKS

Conditional Section when Post has a Featured Image in Bricks

featured-image-condition-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 featured image.

Step 1

Create a Template of the type Section named say, "Featured Image Section" and edit it with Bricks.

Add a Section and place your desired content like a Heading and Image inside the Section's Container.

Select Featured Image to be shown and select a suitable image size.

Step 2

Edit the Template that applies the single view of your post type or a specific Page with Bricks.

Add a Code element where you would like to conditionally output your featured image section.

This is a Pro members-only tutorial.

To get full access, login below or sign up for a Pro Account

Leave your comment