Skip to:
Content
Pages
Categories
Search
Top
Bottom

Full Width Forum Help

  • @watstyl08

    Participant

    Hey everyone,

    I’m having a bit of trouble getting my Forum into full-width format. I’m using the Oxygen theme which by default has a left and right sidebar.

    I’ve already copied my “page-template-fullwidth.php”, renamed it as “bbpress.php”, and installed bbPress WP Tweaks to make sure that bbPress is injecting itself into the “bbpress.php” template.

    Given what I’ve read – this should’ve done the trick. I’m wondering if it’s something weird with Oxygen Theme’s templates. I’ve included the code of the Full Width Template i’m using here below. Does anyone see anything out of the ordinary that could be preventing me from getting full-width formatting?

    <?php
    /**
    * Template Name: Full Width
    *
    * Full width page template with no sidebar.
    *
    * @package Oxygen
    * @subpackage Template
    */

    get_header(); // Loads the header.php template. ?>

    <div class=”aside”>

    <?php get_sidebar( ‘primary’ ); // Loads the sidebar-primary.php template. ?>

    </div>

    <?php do_atomic( ‘before_content’ ); // oxygen_before_content ?>

    <div class=”content-wrap”>

    <div id=”content”>

    <?php do_atomic( ‘open_content’ ); // oxygen_open_content ?>

    <div class=”hfeed”>

    <?php if ( have_posts() ) : ?>

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

    <?php do_atomic( ‘before_entry’ ); // oxygen_before_entry ?>

    <div id=”post-<?php the_ID(); ?>” class=”<?php hybrid_entry_class(); ?>”>

    <?php do_atomic( ‘open_entry’ ); // oxygen_open_entry ?>

    <?php echo apply_atomic_shortcode( ‘entry_title’, ‘[entry-title permalink=”0″]’ ); ?>

    <div class=”entry-content”>

    <?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘oxygen’ ) ); ?>

    <?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . __( ‘Pages:’, ‘oxygen’ ), ‘after’ => ‘</p>’ ) ); ?>

    </div><!– .entry-content –>

    <?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>[entry-edit-link]</div>’ ); ?>

    <?php do_atomic( ‘close_entry’ ); // oxygen_close_entry ?>

    </div><!– .hentry –>

    <?php do_atomic( ‘after_entry’ ); // oxygen_after_entry ?>

    <?php do_atomic( ‘after_singular’ ); // oxygen_after_singular ?>

    <?php endwhile; ?>

    <?php endif; ?>

    </div><!– .hfeed –>

    <?php do_atomic( ‘close_content’ ); // oxygen_close_content ?>

    </div><!– #content –>

    <?php do_atomic( ‘after_content’ ); // oxygen_after_content ?>

    <?php get_footer(); // Loads the footer.php template. ?>

Viewing 51 replies (of 51 total)
  • @xplusboy

    Participant

    you should be remove *template Name : ….*
    its not a page template, should be have some code like this in start file :

    
    <?php
    /**
     * The template for displaying bbPress content.
     *
     * @package WordPress
     * @subpackage BuddyBoss
     * @since BuddyBoss 3.0
     */
    
    get_header(); ?>
    
    	<!-- if widgets are loaded in the Forums sidebar, display it -->	
    	<?php if ( is_active_sidebar('forums') ) : ?>		
    		<div class="page-right-sidebar">
    
    	<!-- if not, hide the sidebar -->
    	<?php else: ?>
    		<div class="page-full-width">
    	<?php endif; ?>
    
    			<!-- bbPress template content -->
    			<div id="primary" class="site-content">
    			
    				<div id="content" role="main">
    
    					<?php while ( have_posts() ) : the_post(); ?>
    						<?php get_template_part( 'content', 'page' ); ?>
    						<?php comments_template( '', true ); ?>
    					<?php endwhile; // end of the loop. ?>
    
    				</div><!-- #content -->
    			</div><!-- #primary -->
    
    			<?php get_sidebar('bbpress'); ?>
    
    		</div><!-- closing div -->
    
    <?php get_footer(); ?>
Viewing 51 replies (of 51 total)
  • You must be logged in to reply to this topic.
Skip to toolbar