BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Buddpress Sidebar in Forums (Child Pages)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #31922
    @straniero

    Hi Guys

    I have a problem.

    My forum works perfectly and picks up the correct sidebar from the widget areas. (www.lightstalking.com/forums/)

    But my ‘latest posts’ page (which is a child page of the forums page) picks up the default wordpress sidebar.

    (www.lightstalking.com/forums/latest/)

    I want that second child page to have the same sidebar as its parent.

    Now, I suspect it is a piece of code in the Buddyboss theme (/sidebar-buddypress.php) (Yes, I will copy the whole file to the child theme)

    But what would I need to change to make this happen?

    Answers

    #31936

    Alyssa
    Participant
    @alyssa-buddyboss

    @straniero I assume you created a page and used a short code, is that correct?

    #31940

    Alyssa
    Participant
    @alyssa-buddyboss

    If so, you can copy the default template, the only change is to call the sidebar-bbpress in the get_sidebar function.

    #31943
    @straniero

    Excdellent! Thanks!

    #31950
    @straniero

    Out of curiosity, why does the main forum page call the correct sidebar and the child page not call it?

    #31960

    Alyssa
    Participant
    @alyssa-buddyboss

    @straniero it’s all in the page template. The forum template is different than the page template and the sidebar is hardcoded into the template. I’ll suggest to the developers to change the page template to use the bp_current_component to determine which sidebar to display…should be easy enough to do but will not be a high priority on the list.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘Buddpress Sidebar in Forums (Child Pages)’ is closed to new replies.