I have scoured the support forums and apologise if this topic has been covered but please could you tell me how I make the Project Items in the Portfolio appear on a full-width page.
This theme rocks and I love it… just wish I could make the whole of my site full-width without sidebars.
Is there a way to make the Portfolio page full-width like the blog posts? If not is there a way to make the blog posts the same width as the project posts?
I’ll be able to provide you with some CSS that should work for this if you provide me with a link to your site so that I may test it there to ensure it works.
I had the same problem, I fixed it by making a custom single.php file that’s used for portfolio posts.
Make a new PHP file and put this code in it:
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Shapely
*/
get_header(); ?>
<!-- #primary -->
</div>
<?php
get_footer();
Line 12 has the “full-width” class which makes it full width. You can also use “no-sidebar” instead of it which removes the sidebar, or any other template in your page-templates folder.
Save this file as single-jetpack-portfolio.php and upload it to your theme folder (in the same folder that your archive-jetpack-portfolio.php file is). Now your portfolio posts should be using this template instead of the one assigned in single.php.
EDIT: I tried to add the PHP file because the code wouldn’t display correctly but apparently we can’t do that.