upgrade to font awesome 5?
-
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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘upgrade to font awesome 5?’ is closed to new replies.