This topic has 7 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #85021
     monkeytoldme
    Participant

    Hello,

    I was wondering if there was any way to have a custom sidebar to just display on my buddypress user profiles. I would really appreciate any help on doing this, as this is the last thing I need to do before the website is completed.

    Thanks for your time.

    #85051
     sharmstr
    Moderator

    You have to use a conditional widget plugin like this: https://wordpress.org/plugins/dynamic-widgets/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #85077
     monkeytoldme
    Participant

    I don’t think that will work. I have already created the sidebar I need for the user profiles (Appearance -> Sidebars) but my problem is, there is no ‘page’ for user profiles so I can’t tell it to use my ‘new’ sidebar.

    The user profiles is just using the default sidebars and there is no where I can tell it to use my custom one.

    #85080
     sharmstr
    Moderator

    I know. You need to add those widgets to the main sidebar and control which pages they are visible on using a plugin.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #85087
     monkeytoldme
    Participant

    I have tried 6 conditional widget plugins, none of them have the option to display on buddy-press profiles. Is there anyway I could edit the buddy-press profile template to show the ‘custom’ sidebar I made?

    It seems that this issue only happens with the Kleo theme, I have tried other themes without a problem.

    I hope this gets resolved, thanks.

    #85089
     sharmstr
    Moderator

    If you dont want to use the plugin I suggested, which seems to work fine on my site. Then you can use Widget Logic and add this to the widgets that you only want displayed on the profile

    COPY CODE
    
    bp_is_user()
    

    and this on the ones you dont

    COPY CODE
    
    !bp_is_user()
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    #85099
     monkeytoldme
    Participant

    Thank-you so much, this works perfectly. The dynamic widget plugin did not have the option for buddypress profile, it was really weird.

    Widget logic worked 100%.

    Thanks again.

    #85101
     sharmstr
    Moderator

    No problem.

    But Dynamic does. See attached.

    Honestly, I used both. Widget Logic is simpler to use if you know the php commands to feed it. So stick with that.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?