Custom Fields
Re-Envisioned
Support General font awesome select field help

  • Creator
    Topic
  • #17698
    Resolved REECE AARON STIELLER
    Participant

    Hi

    Is it possible to get select_advanced to load font awesome icons so that the icons are visible in the select field. Or is there a working plugin / extension for Metabox that allows this feature?

    I have spent two days hacking a javascript work around which i have partially working but run into issues when cloning etc. Therefore, I have decided to seek help! Surely someone has already done this? i know that redux framework has a premium extension for this. (I would be happy to pay for this also)

    In the js_options for the select_advanced field (select2) there is an option called ‘templateResult’ or ‘templateSelection’ which allows you to specify a js call back function to manipulate the option field html and display icons. However it does not seem to work 🙁

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #17710
    Anh Tran
    Keymaster

    Hi,

    We don’t have a field for icon picker yet. I think the best way to do that is creating a new field type. It gives you more flexibility to control the data you want. Using select_advanced might be limited.

    #17729

    Thankyou! I got something working and this is pretty much what I did. Created a new custom field, inherited the select_advanced class but pointed it at a slightly modified version of the select_advance javascript to do the font awesome manipulation. It was actually quite easy doing it this way =)

    #17730
    Anh Tran
    Keymaster

    Awesome! Can you share it with us? I’ll add it to our Resources page.

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