BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Buddpress Sidebar in Forums (Child Pages)
- This topic has 5 replies, 2 contibutors, and was last updated 10 years, 1 months ago by Alyssa.
Question
September 22, 2014 at 10:02 pm #31922@stranieroHi 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
September 23, 2014 at 4:10 pm #31936@alyssa-buddyboss
AlyssaParticipant@straniero I assume you created a page and used a short code, is that correct?
September 23, 2014 at 4:21 pm #31940@alyssa-buddyboss
AlyssaParticipantIf so, you can copy the default template, the only change is to call the sidebar-bbpress in the get_sidebar function.
September 23, 2014 at 5:15 pm #31943@stranieroExcdellent! Thanks!
September 23, 2014 at 6:24 pm #31950@stranieroOut of curiosity, why does the main forum page call the correct sidebar and the child page not call it?
September 24, 2014 at 9:20 am #31960@alyssa-buddyboss
AlyssaParticipant@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.
- The question ‘Buddpress Sidebar in Forums (Child Pages)’ is closed to new replies.