How to put Fontawesome Icons in "prepend text field" ?

Support General How to put Fontawesome Icons in "prepend text field" ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41950
    JoeJoe
    Participant

    Hi,

    I want to put fontawesome icons in the prepend text field for example the facebook , twitter .... icons, to make it easier for the user to put in their data. I have tried this : <span class="fas fa-home" aria-label="Home" role="img"></span> no luck ....

    regards

    joe

    #41952
    PeterPeter
    Moderator

    Hello,

    Meta Box support adding HTML tags before/after the field HTML. What will be rendered will depend on your custom code to add. You might need to enqueue some CSS files to render the Font Awesome icons in the admin area.
    Please follow the documentation
    https://docs.metabox.io/extensions/meta-box-builder/#field-settings
    https://docs.metabox.io/field-settings/

    Or you can try to use the tooltip icon: https://docs.metabox.io/extensions/meta-box-tooltip/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.