Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jonathan Bardo

    (@jonathanbardo)

    Hey jphilung!

    We currently expose a filter to let you easily change the icon of any fields.

    Here is a code snippet you can add to your theme functions.php file to achieve what you are looking for:

    add_filter( 'wpcw_widget_social_fields', function( $fields ) {
    
    	if ( isset( $fields['facebook']['icon'] ) ) {
    
    		$fields['facebook']['icon'] = 'facebook';
    
    	}
    
    	return $fields;
    
    } );

    Let me know if that works for you!

    Thread Starter jphilung

    (@jphilung)

    Great Jonathan !

    Exactly the kind of filter I was looking for.

    Cheers !

    Hi. Liking this new plugin. Really like the icons for social. I’m having issue with Facebook icon. It does not populate (blog.spiritusenergy.com). Any insight?

    thanks.

    Plugin Author Jonathan Bardo

    (@jonathanbardo)

    Hi spiritusenergy,

    It seems you theme is using another version of font-awesome (4.2.0) which collides with the version we are adding (4.3.0).

    The facebook icon doesn’t display because v4.2.0 didn’t include the facebook icon.

    If you want an alternative you can add this little snippet to your theme functions.php:

    add_filter( 'wpcw_widget_social_fields', function( $fields ) {
    
    	if ( isset( $fields['facebook']['icon'] ) ) {
    
    		$fields['facebook']['icon'] = 'facebook';
    
    	}
    
    	return $fields;
    
    } );

    Hi Jonathan, thanks. Where should I add the snippet in the functions.php? Thanks.

    Plugin Author Jonathan Bardo

    (@jonathanbardo)

    You can add it almost anywhere. At the end of the file before the closing php tag ?> (if there is one) is a safe bet.

    perfect! Works. Thanks, Jonathan.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Facebook icon’ is closed to new replies.