Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26544
    Max N
    Guest

    I’d like my Social menu to include a link to my band’s BandCamp page. While Facebook and many other sites have icons generated automatically in that menu, BandCamp does not. How can I add that?

    Thanks, Max

    #26636
    Jesse Owens
    Keymaster

    Hi Max-

    You can add custom Social Media Networks to the icons by following the instructions in this guide.

    To summarize, this is kind of an advanced procedure using a Custom PHP snippet. Install and activate the Code Snippets plugin, and navigate to Code Snippets > Add New.

    In your new snippet, paste the following code:

    function bgsc_add_custom_social_network_bandcamp( $networks ) {
    	$networks['bandcamp.com'] = array(
    		'name' => 'Bandcamp',
    		'class' => 'bandcamp',
    		'icon' => 'fa fa-bandcamp',
    		'icon-sign' => 'fa fa-bandcamp-square',
    		'icon-square-open' => 'fa fa-bandcamp fa-stack-1x',
    		'icon-square' => 'fa fa-bandcamp fa-stack-1x',
    		'icon-circle-open-thin' => 'fa fa-bandcamp fa-stack-1x',
    		'icon-circle-open' => 'fa fa-bandcamp fa-stack-1x',
    		'icon-circle' => 'fa fa-bandcamp fa-stack-1x',
    		);
    	return $networks;
    }
    add_filter( 'boldgrid_social_icon_networks', 'bgsc_add_custom_social_network_bandcamp' );

    Important tip: When you save your snippet for the first time, set it to Only Run Once just in case you’ve made a typo. This will prevent you from needing to activate Code Snippets’ safe mode.

    As long as your site didn’t crash when you ran it once, you can go ahead and save it to Run Snippet Everywhere. It’s always best-practice to “prefix” your custom code. In this example, I used “bgsc_” as the prefix, for “BoldGrid Support Center,” but you can use a different prefix if you like. Otherwise, simply paste the code in as-is.

    Once your code snippet is active and running, you can add a Custom Link menu item to your Bandcamp page and the icon will show up in your social menu:
    New bandcamp icon in the social menu

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Add BandCamp Social Icon?’ is closed to new replies.