ACF Options Page Custom Field Conditional in Bricks

This Pro tutorial shows how we can set an element in Bricks to be output only if the value of a specific custom field on an ACF Pro Options page has a value i.e., is not empty.

In the past, we covered how to retrieve and output ACF Options Fields in Bricks.

To ensure that the Container/Div having the phone icon and the number is rendered only when the phone field on the Options page is populated, add the following in child theme's functions.php or a code snippets plugin:

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