Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25414
    Daniel
    Guest

    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.

    #25421
    Jesse Owens
    Keymaster

    Hi 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' );
    #25422
    Danny
    Guest

    Thanks so much

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding the Google Social Media Icon’ is closed to new replies.