Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    Hello alfaice,

    There isn’t a way to directly get just the icon name from my plugin. You could probably do some string manipulation on the class name to get something close though.

    Using the str_replace function searching for all the different class prefixes and replacing them with nothing might be a good start. Maybe from there you would want to do another string replace to get rid of hyphens, or use PHP functions to change the capitalization of the words.

    str_replace( ['fas fa-', 'far fa-', 'fal fa-', 'fad fa-', 'fab fa-' ], '', $class_name );
    

    I hope this helps.

    Matt Keys

    • This reply was modified 1 year, 8 months ago by Matt Keys.
    Thread Starter alfaice

    (@alfaice)

    I thought about doing it that way, but I wanted to know for sure that it was not possible with the plugin.

    Thanks for the amazing work, the plugin works great 😀

    • This reply was modified 1 year, 8 months ago by alfaice.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Icon Name’ is closed to new replies.