Skip to content

Snippet: Add New Top Bar Social Options

add_filter( 'totaltheme/topbar/social/choices', function( $options ) {

	// Add phone number option
	$options['phone'] = array(
		'label' => 'Phone',
		'icon_class' => 'ticon ticon-phone',
	);

	// Return options
	return $options;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top