Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #362826

    nataliapinzon
    Participant

    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
    Natalia

    #362832

    nataliapinzon
    Participant
    This reply has been marked as private.
    #362975

    Christopher
    Moderator

    Hi 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.

    #363467

    nataliapinzon
    Participant

    Thank you! that worked

    #363544

    Thai
    Moderator

    You’re most welcome 🙂

    #647724

    nataliapinzon
    Participant

    This 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
    Natalia

    #647928

    Rad
    Moderator

    Hi 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.

    #654515

    nataliapinzon
    Participant
    This reply has been marked as private.
    #654747

    Paul R
    Moderator

    Hi,

    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

    #655865

    nataliapinzon
    Participant

    Oh that was so dumb of me! phew! thank you

    #655879

    Friech
    Moderator

    Should you require any further assistance with X theme, feel free to get in touch with us.

    Cheers!