Opens in a new tab
9th May '24
/
3 comments

ACF Font Awesome Field in Bricks

This Pro tutorial walks you through using the Advanced Custom Fields: Font Awesome Field plugin in Bricks for showing Font Awesome icons.

Consider this ACF field group with a Repeater field having the Font Awesome ACF sub field for a Page:

Result after implementing the tutorial:

Step 1

Install the Advanced Custom Fields: Font Awesome Field plugin and activate it.

Create the ACF field group for your desired location (all Pages in this example).

JSON export of the field group

For the 'Font Awesome Icon' type field, leave the Return Value as 'Icon Element'.

Set 'Enqueue FontAwesome' to Yes. The plugin loads FA only on the pages where the icons are used.

Step 2

Edit your Page or Template with Bricks.

Copy the JSON from the link below and paste it in the Bricks editor.

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Get access to all 633 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Pro
Conditionally Hiding Bricks Filters based on Select Filter Value

Conditionally Hiding Bricks Filters based on Select Filter Value

How show or hide Bricks' filter based on the selection made by another filter.
Categories:
Tags:
ACF Relationship: Count of Related Posts

ACF Relationship: Count of Related Posts

Looking to get the number of CPT B posts related to a CPT A post when using a Relationship field with ACF? Here's a custom…
Categories:
Tags:
Pro
Outputting ACF Repeater’s Sub Fields

Outputting ACF Repeater’s Sub Fields

This Pro tutorial provides the code for printing custom HTML after looping through rows of a ACF Repeater (available in ACF Pro) that has a…
Categories:
Pro
ACF Image Data in Bricks

ACF Image Data in Bricks

Displaying Alt text, Caption, Title and URL of an ACF image field for posts in a query loop.
Categories:
Tags:
Pro
Frontend Editing with ACF in Bricks

Frontend Editing with ACF in Bricks

This Pro tutorial provides the steps to show a form on single posts on the front end for admins and the post author using which…
Categories:
Pro
Meta Box/ACF Images Staggered Grid Gallery in Bricks

Meta Box/ACF Images Staggered Grid Gallery in Bricks

Showing images from two Gallery-type of ACF or Image Advanced-type of Meta Box fields in a staggered grid layout.