Skip Navigation

[Resolved] Custom icon for post type – font awesome?

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 1 year, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2605277

jww

I want to use a custom icon for custom post types. I see some old posts in the forum about it.
1. What is the current best way to do this? When you make a new post type and click choose icon, the choices are very limited.
- How can I make my own custom icons available in that list?
- Is there a way to offer all of font awesome 5 icons?
Thanks in advance.

#2605553

Hello,

You are right, the correct way is: make a new post type and click choose icon

And you can customize the post type icon with custom codes, for example:
You can use WordPress built-in filter hook "register_post_type_args" to change the "menu_icon" parameter of your custom post types.
https://developer.wordpress.org/reference/hooks/register_post_type_args/
https://developer.wordpress.org/reference/functions/register_post_type/#menu_icon

#2606229

jww

It would be nice if we could just use a font awesome slug for it rather than having to go through all that. The options are very limited in what's offered.

#2606233

Unfortunately, Toolset Types plugin is using WordPress built-in dash icons by default:
https://developer.wordpress.org/resource/dashicons/

If you need other icons, you will need to consider custom codes, see my answer above:
https://toolset.com/forums/topic/custom-icon-for-post-type-font-awesome/#post-2606229