add_shortcode( 'total_social_share', function() {
ob_start();
echo get_template_part( 'partials/social-share' );
return ob_get_clean();
} );
Snippets: Create a Shortcode for the Total Social Share
All PHP snippets should be added via a child theme's functions.php file.