Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sidebar won’t show


  • Stanjop
    Participant

    @stanjop

    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

Viewing 5 replies - 1 through 5 (of 5 total)

  • Robin W
    Moderator

    @robin-w

    can you copy your bbpress.php here so I can take a look


    Stanjop
    Participant

    @stanjop

    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>


    Stanjop
    Participant

    @stanjop

    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.


    Stanjop
    Participant

    @stanjop

    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!


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar