Tagged: Social Media Icons
Viewing 3 posts - 1 through 3 (of 3 total)
- AuthorPosts
- July 28, 2020 at 11:55 am #25414DanielGuest
Hello,
Im trying to add the Google Social Media Icon when I add a google.com social url. I was able to get it to work by adding it here “class-boldgrid-framework-social-media-icons.php”
But I am using a child theme and am wondering how I can possibly overwrite this file in my child theme.
July 28, 2020 at 12:00 pm #25421Jesse OwensKeymasterHi Daniel-
You don’t need to modify the core BoldGrid files, you can actually use a filter in your child theme’s functions.php.
Here’s an article detailing the process of adding a custom social media icon. Specifically you’ll use a function and filter like this:
function add_custom_social_network_google( $networks ) { $networks['google.com'] = array( 'name' => 'Google', 'class' => 'google', 'icon' => 'fa fa-google', 'icon-sign' => 'fa fa-google-square', 'icon-square-open' => 'fa fa-google fa-stack-1x', 'icon-square' => 'fa fa-google fa-stack-1x', 'icon-circle-open-thin' => 'fa fa-google fa-stack-1x', 'icon-circle-open' => 'fa fa-google fa-stack-1x', 'icon-circle' => 'fa fa-google fa-stack-1x', ); return $networks; } add_filter( 'boldgrid_social_icon_networks', 'add_custom_social_network_google' );
July 28, 2020 at 12:16 pm #25422DannyGuestThanks so much
- AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Adding the Google Social Media Icon’ is closed to new replies.