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

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 Pro members-only tutorial.

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

Leave the first comment