The code you wrote didn’t work, but your plugin does. Almost exzellent 😀
I have a different question, and I know many post becouse of this issue exist.
But none of them got me to a resolution.
How can I use the full width for my forums? At the homepage of my forumsite it works nice, but as soon as I click on a Forum the disgusting sidebar comes from the right. I tried copying the page.php an rename it to bbPress.php and remove all things that have to do with sidebars. That didn’t work.
Here is the code:
* The template for displaying all pages.
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
* @package Sydney
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>