Skip Navigation

[Resolved] Use font awesome inside a select

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 4 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1376951

Tell us what you are trying to do?
I would like an WordPress Editor to be able to select a font awesome icon.
I would like to setup a custom field for that using a select.

What we need:
Can you supply an example of what code is needed in the select?

Is there any documentation that you are following?
None found

Is there a similar example that we can see?
Not that we know

What is the link to your site?
Site and functionality is under construction, but we need this asap.

#1377019

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Co-incidentally I'm just dealing with another thread where it has been reported that there is a bug in the select fields so that any HTML elements added to the display text are stripped, which means right now what you want isn't possible because the font-awesome icons are added something like this:

<i class="fas fa-coffee fa-xs"></i> 

I've escalated this issue to the developers, who will hopefully be able to provide a fix before too long.

Until then it's not possible. I'll update again here as soon as I have news from the developer about a solution.

#1418253

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

The developer has added a workaround to the erratum for this issue which you can try: https://toolset.com/errata/html-in-toolset-custom-field-labels-is-stripped-when-saving-the-fields/

The solution itself will be included in the next release of Types.

#1460131

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Just to let you know that Types 3.3.9 which includes the fix for this has now been released.