Hi Folks,
I’m so glad to have discovered the code for adding social media sharing buttons to my blog posts. As of right now, I have this code pasted into my functions.php file of my child theme:
function x_add_social_sharing() {
if ( is_single() ) {
echo do_shortcode(’[x_share title=“Share this Post” facebook=“true” twitter=“true” google_plus=“true” linkedin=“true” pinterest=“true” reddit=“true” email=“true”]’);
}
}
add_action(‘x_before_the_content_end’, ‘x_add_social_sharing’);
And the bottom of my blog post looks like this:
Is there a way to also have the social share buttons appear at the top of the blog post just before the main content, somewhere around here:
I imagine it’s just a variation of the code I already have in my functions.php file.
I appreciate it much!!
Jeremy