• Resolved andreacianni

    (@andreacianni)


    I tried to add messenger to social widget but was not able…
    After some testing and inspecting the code finally i understand:
    the plugins load the 4.7 version but the facebook-messenger icon was added only from the version 5.
    So the code:

    add_filter( 'wpcw_widget_social_custom_fields', function ( $fields, $instance ) {
    
      $fields['facebook-messenger'] = [
        'icon'      => 'facebook-messenger', //See font-awesome icon slug
        'label'     => __( 'messenger', 'YOURTEXTDOMAIN' ),
        'default'   => 'https://fb.com/msg/username',
        'select'    => 'username',
        'sanitizer' => 'esc_url_raw',
        'escaper'   => 'esc_url',
        'social'    => true,
        'target'    => '_blank',
      ];
    
      return $fields;
    
    }, 10, 2 );

    could not work.

    Is it make sense?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Evan Herman

    (@eherman24)

    Hi @andreacianni,

    At the moment, we just have Font Awesome 4.7 bundled so as you mentioned that icon won’t work. Technically, you could dequeue the stylesheet we enqueue, and enqueue the font awesome 5 stylesheet in it’s place.

    We are going to investigate bumping things up to Font Awesome 5. Some of the classnames did change for a few icons, so we’ll need to investigate the impact that will have on us as we upgrade.

    Evan

    Plugin Author Evan Herman

    (@eherman24)

    Hi again @andreacianni,

    I’ve been working on a PR to get Font Awesome 5 updated inside of contact widgets. Feel free to follow along with progress here: https://github.com/godaddy/wp-contact-widgets/pull/41

    Evan

    Thread Starter andreacianni

    (@andreacianni)

    Wonderful, thank you!

    Plugin Author Evan Herman

    (@eherman24)

    Hi @andreacianni

    Sorry for the delay in getting the latest release out. We have now pushed out a 1.5.0 release that now bundles font awesome 5. The code you have posted above to add the facebook messenger icon should now work.

    If it doesn’t work as intended feel free to post back here and I’ll hop in and help out in any way that I can.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘upgrade to font awesome 5?’ is closed to new replies.