Appearance
Are you an LLM? You can read better optimized documentation at /cassio/wp/tips-tricks/adding-custom-social-icons.md for this page in Markdown format
Adding Custom Social Icons ​
You can extend the default social icons set using custom theme filters. The following code should be inserted in the functions.php file of the Cassio child theme.
Add custom icons to Customizer -> Header -> Social Links panel ​
php
add_filter( 'arts/customizer/social_links/icons', function( $icons ) {
$icons += array(
'fa fa-google fa-fw' => esc_html__( 'Custom Icon #1', 'cassio' ),
'fa fa-apple fa-fw' => esc_html__( 'Custom Icon #2', 'cassio' ),
);
return $icons;
}, 99);Add custom icons to Cassio: Social Media widget ​
php
add_filter( 'arts/widgets/cassio_widget_social/icons', function( $icons ) {
$icons += array(
'google' => array(
'title' => esc_html__( 'Custom Icon URL #1', 'cassio' ),
'icon' => 'fa fa-google fa-fw',
),
'apple' => array(
'title' => esc_html__( 'Custom Icon URL #2', 'cassio' ),
'icon' => 'fa fa-apple fa-fw',
),
);
return $icons;
}, 99);