Hi I would like to modify the code to add text above the portfolio page of the X theme !
I cannot see that page. I get “Oops! That page doesn’t exist or is private.” I would also like to do this on my Portfolio page. Can you direct me to a working link? Thanks!
Hi there,
Sorry about that, I’m assuming you’re using Integrity Stack, first add the content in your Portfolio page’s editor:

Then create a new file template-layout-portfolio.php and paste the following code in there:
<?php
// =============================================================================
// VIEWS/INTEGRITY/TEMPLATE-LAYOUT-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Portfolio page output for Integrity.
// =============================================================================
?>
<?php get_header(); ?>
<div class="x-container max width offset">
<div class="<?php x_main_content_class(); ?>" role="main">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
the_content();
} // end while
} // end if
?>
<?php x_get_view( 'global', '_portfolio' ); ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Save the file and upload the file in your Child Theme /x-child/framework/views/integrity/
Hope this helps!