Any way to get all of my social share buttons to work?

Hello, I’m trying to implement social share buttons on my blog posts, but only the Reddit and Google+ buttons seem to actually allow sharing.

Any idea as to how to fix it so all the other icons work as well?

Thanks!

Hello @mfrahm,

Thanks for writing in! :slight_smile:

To achieve this, you need to create a child theme. A child theme is a theme that inherits the functionality of another theme, called the parent theme. In this case, your parent theme is the X theme. This is where you can modify the code in X theme without overriding any functionality instead of modifying the core theme files directly.

Then please add this code in your functions.php of your child theme.

function x_add_social_sharing ( $content ) {
 if ( !is_front_page() && is_home() ) {
    echo do_shortcode('[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'); 

Hope it helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.