Get 30% discount on lifetime membership by using BFCM2023 coupon.
Offer ends on 30th Nov 2023 at 11:59:59 PM UTC.

New Ribbon for Posts in Bricks

This Pro tutorial provides the steps to display a "New" ribbon for posts that were published in the last x days in Bricks.

Update: Added instruction on showing the ribbon for posts that were modified after they were published.

Step 1

Edit your Page/template with Bricks and set up a query loop.

If you'd like to copy-paste a fully built one, head on to BricksSections.

Step 2

Add a Code element alongside other post elements.

Paste the following:

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Instant access to all 250+ Bricks code tutorials with BricksLabs Pro