Hey @Gingerfizz_Marketing,
Sorry again. I used the incorrect action hook. The correct one should be this:
add_action( 'x_after_view_global__portfolio', 'add_post_shortcode' );
function add_post_shortcode() {
if( x_is_portfolio() ){
echo do_shortcode( '[cs_gb id=381]' );
}
}
If this code still does not work then we will have to edit the template layout itself. To do that, please follow these steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file
<?php
// =============================================================================
// VIEWS/INTEGRITY/TEMPLATE-LAYOUT-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Portfolio page output for Integrity.
// =============================================================================
get_header();
?>
<div class="x-container max width offset">
<div class="<?php x_main_content_class(); ?>" role="main">
<?php x_get_view( 'global', '_portfolio' ); ?>
<?php echo do_shortcode( '[cs_gb id=381]' ); ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
3] Save the file named as template-layout-portfolio.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/views/integrity/
You will need to create the folder path since it does not exist in your child theme yet.
Kindly let us know which one work out for you.