-
AuthorPosts
-
August 18, 2015 at 8:59 pm #362826
I am essentially having the same problem as this user but I an trying to have sidebars show up on my childpages of buddypress rather than my shop.: https://community.theme.co//forums/topic/sidebar-not-showing-on-posts-but-on-blog-home-page/
I’ve seen a lot of comments on adding sidebars to both blogs and shops’s child pages. I would like to have my sidebar show up on all child pages of my Buddypress section of my website.
thank you
NataliaAugust 18, 2015 at 9:06 pm #362832This reply has been marked as private.August 19, 2015 at 12:19 am #362975Hi there,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Please add this in child theme’s functions.php :
add_filter('ups_sidebar', 'force_buddypress_sidebar', 20); function force_buddypress_sidebar ( $sidebar ) { return x_is_buddypress() ? 'REPLACE_THIS_WITH_SIDEBAR_ID' : $sidebar; }
Hope it helps.
August 19, 2015 at 10:42 am #363467Thank you! that worked
August 19, 2015 at 11:58 am #363544You’re most welcome 🙂
October 31, 2015 at 4:34 pm #647724This does not seem to be working anymore. I’m not sure what happened, but I added the code on my child theme and I still cannot get the sidebar to show up. I am using the sidebar id: “members” (I also tried “ups-sidebar-members” as the id) but none of my buddypress pages are showing it. Nor is my “socios” page (or members in spanish).
Please help
NataliaNovember 1, 2015 at 12:15 am #647928Hi there,
Is this a multi site? I can’t find where are plugins and edit themes. I can’t perform some check.
Would you mind disabling all caching plugin or feature while we’re testing? Specially the zencache.
And please provide your FTP login credentials in private, I’d like to check the code directly.
Thanks.
November 5, 2015 at 7:19 pm #654515This reply has been marked as private.November 5, 2015 at 11:09 pm #654747Hi,
Upon checking, I can see your sidebar in the buddypress page but it’s empty.
You need to add contents to it under Appearance > widgets.
Please see sceenshot – http://screencast.com/t/aJpdmgFJhdmu
Thanks
November 6, 2015 at 9:25 pm #655865Oh that was so dumb of me! phew! thank you
November 6, 2015 at 9:49 pm #655879Should you require any further assistance with X theme, feel free to get in touch with us.
Cheers!
-
AuthorPosts