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 390+ Bricks code tutorials with BricksLabs Pro