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..

Modifying ACF Field Value Before It Is Output

Modifying ACF Field Value Before It Is Output

Consider the scenario where a Page has a "Page Fields" field group created with ACF Pro like this: Field name: scientific_coordinators (type Repeater)|__ Sub field…
Categories:
Pro
Events grouped by Event Date custom field in Bricks

Events grouped by Event Date custom field in Bricks

This Pro tutorial for Bricks users provides the steps to output posts of an event custom post type dynamically grouped by the value of their…
Categories:
How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 2)

How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 2)

This tutorial provides the PHP & JS codes that can be pasted in order to create a flying effect on map markers each time your…
Pro
Limit Bricks Users Query to Current Post’s User-type ACF Field Value

Limit Bricks Users Query to Current Post’s User-type ACF Field Value

Consider this scenario with ACF: "John Briley" user: "Gandhi" movie: The requirement is to show John Briley as the author when Gandhi movie item is…
Categories: