Hi,
is it possible to add an icon/dashicon to the “Tab” field?
I’m using vertical and horizontal tabs in theme option pages, I think it is a very powerful feature to organize the fields, and I’d love to add some icons for better usability.
thanks!
I’ve looked into this and the only way that I think it could be done would be to insert the markup for the icons using javascript.
Thanks for your quick reply!
I think the only way would be using the “data-key” value? I’ll write some code and test it.
Will paste it back if I succeed.
Yes, the ‘data-key’ value is what you want to use for targeting specific tabs. You might want to check on this document https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/ and look at the “ready” action for ACF.
Seems as it is possible.
Just copy/paste HTML code of dashicon under “Field Label *”
Tab Title <span class=”dashicons dashicons-editor-help”></span>
or just icon without text.
is it possible in button groups ?