Full width single blog posts, sidebar on main blog feed - Integrity

Hi,

I’m looking to create a layout that is full width on single blog posts (only about 800px wide), but has the sidebar on the main blog feed as usual.

I found this support ticket from a few days ago and tried to use the template but it didn’t work, because it is for the Renew Stack, but I’m on Integrity.

I don’t use the stacks feature at all as I try to design everything custom, but you have to use a stack regardless. I’m not sure how to get this to work with Integrity as that is the stack I chose.

The support post is here:

This is the staging site blog feed:

Any help with this is appreciated.

Regards

Dan

Hi Dan,

Please kindly follow the same steps mentioned in the thread that you gave the link. Just instead of the code suggested use the code below:

<?php

// =============================================================================
// VIEWS/INTEGRITY/WP-SINGLE.PHP
// -----------------------------------------------------------------------------
// Single post output for Integrity.
// =============================================================================

$fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );

get_header();

?>

  <div class="x-container max width offset">
    <div class="x-main full" role="main">

      <?php while ( have_posts() ) : the_post(); ?>
        <?php x_get_view( 'integrity', 'content', get_post_format() ); ?>
        <?php x_get_view( 'global', '_comments-template' ); ?>
      <?php endwhile; ?>

    </div>

  </div>

<?php get_footer(); ?>

And add the file into the address below:

/wp-content/themes/x-child/framework/views/integrity/

You will need to create the folders in the address above inside your Child Theme. If you do not have a child theme please read this article to know how to install it.

Please kindly consider that this is a customization request and outside of our support scope. We will do our best to show you how to do the customization but we will not be able to implement the feature for you.

Thank you for your understanding.

Hi,

Thanks for the response. Sorry, I didn’t get an email notification or I would have responded earlier.

I’ve just followed your instructions, but this is for the pro theme (with child), and the framework folder doesn’t have any stacks subdirectory.

Sorry, I should have said it was Pro, not X.

/applications/cvspdbgcjd/public_html/wp-content/themes/pro-child/framework/views/

That is the full path to the child theme frameworks I have.

When I look in the main PRO directory, it has a /framework/views/integrity

But that will get overwritten with any updates.

Is there somewhere else I should put this? Or do I create the “integrity” folder in the child theme “views”?

Regards

Dan

Hi,

Never mind, I just created the “integrity” subdirectory in the child theme folder and put the template in their and to worked instantly.

Thank you for your help with this.

Regards

Dan

You’re welcome, Dan.

1 Like

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