Sidebar won’t show
-
Hi everyone,
Im totally breaking my head on this one. I’m trying to get the sidebar to work with my bbpress forum but it just doesn’t appear on the right side of the page. If i use the <?php get_sidebar(); ?> command within the bbpress.php file i created within my theme folder, the sidebar does show, but only on top of the page. It just doesn’t nicely blend in with the forum.
I also tried various plugins for getting a sidebar, but those also don’t show up. Anyone has any ideas, maybe experiencing the same issues?
Thanks allot,
Regards, Mark
-
can you copy your bbpress.php here so I can take a look
Hi Robin,
Thank you for your reply, see under here:
<?php
/*
Template Name: BBpress
*/
?><?php wp_head(); ?>
<?php $thumb = ( has_post_thumbnail() ) ? wp_get_attachment_image_src( get_post_thumbnail_id(), ‘profile-featured-medium’ ) : false; ?>
<!– BEGIN .container –>
<div class=”container”>
<!– BEGIN .post class –>
<div <?php post_class(); ?> id=”page-<?php the_ID(); ?>”>
<?php if (get_theme_mod(‘display_feature_page’, ‘1’) == ‘1’) { ?>
<?php if ( has_post_thumbnail() ) { ?><!– BEGIN .row –>
<div class=”row”>
<div class=”feature-img page” >
<div class=”banner” <?php if ( ! empty( $thumb ) ) { ?> style=”background-image: url(<?php echo esc_url( $thumb[0] ); ?>);” <?php } ?>>
<h1 class=”headline img-headline”><?php the_title(); ?></h2>
<?php the_post_thumbnail( ‘profile-featured-medium’ ); ?></div>
</div><!– END .row –>
</div>
<?php } ?>
<?php } ?><!– BEGIN .row –>
<div class=”row”><!– BEGIN .twelve columns –>
<div class=”twelve columns”><!– BEGIN .postarea full –>
<div class=”postarea full”><?php get_template_part( ‘content/loop’, ‘page’ ); ?>
<!– END .postarea full –>
</div><!– END .twelve columns –>
</div><!– END .row –>
</div><!– END .post class –>
</div><!– END .container –>
</div>I think it might be due to use of the ‘Full Width’ page template. There is a ‘default page’ template which i can choose while adding pages, but i don’t know the location of the .php file of that one.
Hi there,
Just to let you know, i found a workaround. I edited the page.php to bbpress. And with the plugin Widget logic, i am able to filter the sidebar.
Thank you!
great – glad you are fixed !
- You must be logged in to reply to this topic.