• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2764

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Premium Access
  • Log in

ACF Show Checkbox Choice With Icon Only When Value Checked

This code enables you to add icons to each checkbox choice. The icon and name for each choice is only displayed when the checkbox is checked.

Here’s the checkbox choice values available from the edit screen :

And here’s an example of whats shown on the front end :

If nil checkboxes are checked, the title and choices do not display.

You can use Dashicons however they are limited so you may find Font Awesome provide a larger range of icons to choose from.

Register or login to access the code for members :

Register for full access

Related Tutorials

  • Displaying ACF Field Types In Genesis Template
  • Add ACF Google Map In Genesis

Custom Fields

Reader Interactions

Comments

  1. Jonathan Bowles says

    November 20, 2017 at 5:51 pm

    Is it possible to use the same code for a plugin/widget?

    Log in to Reply
    • Brad Dalton says

      November 20, 2017 at 5:59 pm

      Not clear to me what you mean by plugin/widget.

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.