Skip to:
Content
Pages
Categories
Search
Top
Bottom

No Sidebar on Profile Page


  • maddogprod
    Participant

    @maddogprod

    I’m working my way through customizing BuddyPress (in conjunction with S2Members) and so far it’s going great. One oddity….I have a sidebar set up on my Members page but on the Profile page I get a sidebar area that’s got a blank text area. Since the Profile page doesn’t use its own page I can’t just add it. I tried using the BuddyPress Sidebar plugin but no joy.

    Why isn’t the Profile page picking up the Sidebar?

    THANKS!

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

  • danbp
    Moderator

    @danbp

    Members and profile use he same page, members, with contextual templates.

    Ensure first that the member page is empty, without any setting, parent page or aattached template. BP component pages must be blank.

    After this it depends of the theme. Does he use some extra settings for widgets ? A custom sidebar ?…

    https://buddypress.org/support/topic/when-asking-for-support-2/


    maddogprod
    Participant

    @maddogprod

    Thanks for getting back to me. That’s why I don’t get it…if it uses the same template why would it work on the Members page but not the Profile.

    The page is blank. Yes, it uses custom sidebars. It’s WP 4.2.1. BuddyPress 2.2.3.1.

    You can go to http://thaihealingalliance.com/members/ and see that the sidebar I want is there. Now click on a member and when you get to the profile page, there’s a “blank text sidebar” there, not the same one as you’d expect. It doesn’t matter which sidebar I select for that page, they all show on the Members page but not on the Profile page.

    Let me know what other information I can pass along.


    danbp
    Moderator

    @danbp

    You misunderstood me:
    […] if it uses the same template why would it work on the Members page but not the Profile.
    I said the same page, not the same template. Members directory has his own template and a profile has some other template. Directory and profiles are using the same page: members. And not at least, this is only a page name. Technicaly, BP use page.php

    See template hierarchy on Codex to understand how it works.

    Now, why is the sidebar not showing widgets despite the sidebar code is in the page source ? No idea… Seems to me you use a lot of parts which are not from WordPress and some unusual settings to show your site…

    If you use custom sidebars from your theme, you have to try those bars.
    Activate 2015 and see how to get widgets to appear on that theme first. Then reactivate Wellness and see what you get.
    Or ask your theme support.

    Sorry, but i can’t help you much more because you’re using a premium theme.
    And as you don’t give details about your install, you can’t expect more for now.


    maddogprod
    Participant

    @maddogprod

    In case anyone has this problem, here’s how I fixed it (I’m still not sure why it wouldn’t work as intended automatically):

    – I registered the sidebar in fucntions.php

    – Added a copy of page.php to the child theme directory: /wp-content/themes/wellness/buddypress/members/single using the name: index.php

    – Where the code in that page calls the Sidebar, I changed it to: <?php dynamic_sidebar( 'new_members_area' ); ?> which of course includes the registered name of the sidebar

    – For some reason it wasn’t picking up the Sidebar CSS so I enclosed it in a div:

    <div id="sidebar">
    <?php dynamic_sidebar( 'new_members_area' ); ?>
    </div>

    -VOILA!


    maddogprod
    Participant

    @maddogprod

    To change the subject….I want to add/change the filtering dropdown choices on the Member Directory page. I’m seeing lots of discussion in online searches about how to do it but nothing very definitive. Can you point me to an FAQ or other BP source on how best (and hopefully easiest) to accomplish this? Basically I don’t need all the default choices for filtering but would like to add a “List by country” and similar choices.

    THANKS!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No Sidebar on Profile Page’ is closed to new replies.
Skip to toolbar