Hello There,
Let me clarify this. Do you want to display the social icons in the single portfolio item?
If that is the case, please update the code and use this:
function add_x_portfolio_item_social(){
if ( is_single() ) { ?>
<div class="port-social">
<?php x_portfolio_item_social(); ?>
</div>
<?php }
}
add_action('x_after_the_content_begin', 'add_x_portfolio_item_social');
The social icon will display above the contents of the portfolio item.
And if you want to display the social icon just below the excerpt only, then this code would help:
function add_x_portfolio_item_social(){ ?>
<div class="port-social">
<?php x_portfolio_item_social(); ?>
</div>
<?php }
add_action('x_before_the_excerpt_end', 'add_x_portfolio_item_social');
Hope this helps. Kindly let us know.