Change Portfolio layout to Template 4, No Container | Header, Footer

I’m trying to change the layout of the Portfolio pages to match the style of Template 4 (No Container | Header, Footer).

I’ve tried changing the template-layout-portfolio.php in the child theme root to use:

x_get_view( x_get_stack(), 'template', 'blank-4' );

And also edited template-layout-portfolio.php in views/integrity/ to use the code from template-blank-4.php

get_header();

?>

  <div class="x-main full" role="main">

    <?php while ( have_posts() ) : the_post(); ?>

      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <?php x_get_view( 'global', '_content', 'the-content' ); ?>
      </article>

    <?php endwhile; ?>

  </div>

<?php get_footer(); ?>

Neither is working, and the portfolio pages continue to have a sidebar and breadcrumbs. What am I missing?

Hi @fireflight,

You can try adding this custom CSS under Theme Options > CSS:

.single-x-portfolio .x-container.max.width.main {
    width: 100%;
    max-width: 100%;
}

.single-x-portfolio .entry-featured,
.single-x-portfolio .entry-wrap {
    width: 100%;
    margin: 0;
}

.single-x-portfolio .x-breadcrumb-wrap,
.single-x-portfolio header.x-header-landmark.x-container.max.width {
    display: none;
}

Hope it helps :slight_smile:

Hi Thai.

That didn’t do anything that I can see.

The portfolio pages continue to show the title, meta, and the sidebar.

I want to use the Cornerstone to build the portfolio, and have full access to design them as I do normal pages.

Looks like I managed to resolve it.

I replaced the contents of framework/views/integrity/wp-single-x-portfolio.php with the php from framework/views/integrity/template-blank-4.php.

Hey @fireflight,

That should be fine as long as you have done the customization using a child theme.

Glad to hear it’s sorted.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.