Hi there, in the P2 theme, the sidebar include is in the file header.php, on line 48. (Your line numbers may differ if you’ve made any changes to the theme.)
To exclude the sidebar on static pages, you could try wrapping it in a conditional tag, so the sidebar only gets included if it’s NOT a page. So instead of this:
<?php get_sidebar(); ?>
You would have this:
<?php if ( ! is_page() ):
get_sidebar();
endif; ?>
After you do that you’ll also need to make some CSS adjustments to the widths of various elements. You can start by adding this to your child theme:
#main {
width: 960px !important;
}
(If it works without !important you can remove it.)
Just a heads-up that the best way to make changes to a theme is to use a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:
https://codex.www.ads-software.com/Child_Themes
https://op111.net/53/
https://vimeo.com/49770088
Let me know how it goes.