skip to Main Content

Create a Social Share Shortcode

Important: This snippet is no longer required. The theme now includes a Social Share element which you can use via your favorite builder.
add_shortcode( 'total_social_share', function() {
	ob_start();
	echo get_template_part( 'partials/social-share' );
	return ob_get_clean();
} );
All PHP snippets should be added via child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)
Back To Top