That is pretty close. But it puts the social warfare share bar below the posts. I want to have it up in the description area instead.
So, instead of this (where it’s at the bottom above the footer):
More like this:
It’s worth pointing out that we already have code in our functions.php to Show Category Description. Is it possible to combine? Here’s are the relevant lines from our functions.php file:
/* Show Category Description */
function add_category_description() {
if(is_archive()) { ?>
<div class="cat-desc">
<div class="x-container max width"</div>
<?php echo category_description(); ?>
</div>
</div>
<?php
}
}
add_action( 'x_after_view_integrity__landmark-header', 'add_category_description',99999 );
// Add a custom shortcode in the tag or category archive
// =============================================================================
function custom_shortcode() {
if( is_archive() && (is_tag() || is_category()) ) : ?>
<div class="x-container custom-shortcode" style="clear: both;">
<?php echo do_shortcode('[social_warfare]'); ?>
</div>
<?php endif;
}
add_action('x_after_view_global__index','custom_shortcode');
// =============================================================================