FontAwesome icon for MyCred points prefix

Home Forums Legacy Support Support queries Styling issues FontAwesome icon for MyCred points prefix

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #137206
    plxs00
    Participant
    Hi Mr. Vibe! I'd like to use a FontAwesome icon for MyCred points prefix I've found this tutorial http://codex.mycred.me/filters/mycred_format_creds/ on their website but don't know how/where to implement it on WPLMS Thank you!
    #137250
    Diana
    Participant
    @plx00, Please give me some time to test this on my setup.
    #137272
    Diana
    Participant
    @plx00, Please go to wp-admin -> Plugins -> Editor -> select wplms customizer plugin and paste the below code. add_filter( 'mycred_format_creds', 'mycredpro_add_html_to_rendered_points' ); function mycredpro_add_html_to_rendered_points( $points ) {return '<i class="fa fa-diamond"></i> ' . $points;} you can change fontawesome icon by passing class name.
    #137296
    plxs00
    Participant
    This reply has been marked as private.
    #137305
    Diana
    Participant
    @plxs00, Make sure you have both plugins activated: MyCred Plugin and WPLMS MyCred ADDON Refer: http://prntscr.com/hfudxf http://prntscr.com/hfuegt MyCred Settings: http://prntscr.com/hfukh4
    #137340
    plxs00
    Participant
    [Resolved] Hello Diana, thank you very much for your help The problem before is that I didn't have 'Editor' in my plugin sub-menu due to a Security tweak performed by a Security plugin I changed the security settings and now it works, thank you!
    #137362
    Diana
    Participant
    @plxs00, Thanks for confirming, now closing the topic.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘FontAwesome icon for MyCred points prefix’ is closed to new replies.