Hi Darryn,
Above code will work on standard post format on archive page. Now for it work on other post format, please update code this:
function x_add_social_sharing() {
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_after_view_global__content', 'x_add_social_sharing');
add_action('x_after_view_integrity_content-image', 'x_add_social_sharing');
add_action('x_after_view_integrity_content-quote', 'x_add_social_sharing');
add_action('x_after_view_integrity_content-link', 'x_add_social_sharing');
add_action('x_after_view_integrity_content-video', 'x_add_social_sharing');
add_action('x_after_view_integrity_content-audio', 'x_add_social_sharing');
The location of social media sharing will be different depending on the post format. This is by default available on single post page only. See this screencast on what I mean my difference on location: https://screencast-o-matic.com/watch/cqjVXEOGfS
Now if you intend it to be inside the box of the article not after the post footer, it is another template change. For example, for image type post, copy this file:
\wp-content\themes\x\framework\views\integrity\content-image.php
To the same folder path on your child theme here:
\wp-content\themes\x-child\framework\views\integrity\content-image.php
You might need to create the folder on your child theme. Edit the copied file. Look for this part:
<?php else : ?>
<header class="entry-header center-text">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
</h2>
<?php x_integrity_entry_meta(); ?>
</header>
<?php endif; ?>
On that template, you can see there is an if else statement. The first process the display for single post, then on the else part is for archive. On the else part of the code, after this line:
<?php x_integrity_entry_meta(); ?>
Add this:
<?php echo do_shortcode('[x_share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');?>
You need to repeat that process, on all other post type aside from standard. See below on the location difference I describe above:
That is an image post type. Social media sharing inside the black box is added using the last part I discuss. The social media sharing outside the black box is added via function.php, the first part of the code.
Hope this helps.