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

    ignaciosantiago
    Participant

    Hi,

    I´m trying to add a custom sidebar to forum main page, topics page and each single topic page, but i don´t see the option in sidebar settings.

    What am i doing wrong?

    #203409

    Nico
    Moderator

    Hi there,

    Nah it’s okay. 🙂

    You could follow this step on how to add a sidebar.

    1. Check your pages if its layout allows you to create a sidebar. whether sidebar-left,content-right or sidebar-right, content-left.

    2. If your pages allows you to show sidebars, add sidebars in your Appearance>Sidebars

    3. After creating sidebars, manage your sidebars to what pages will it be shown.

    4. You can go to Appearance>Widgets for you to customize your sidebar.

    hope it helps. Enjoy!

    #204384

    ignaciosantiago
    Participant

    I knew this, but:

    #2 I create a sidebar called “forum”

    #3 Here is the problem, in the post/page list there`s no forum page (http://frenchiemania.com/foros)

    Buddypress pages appear in this list (ex. http://frenchiemania.com/actividad/), but the bbpress no.

    #205096

    Nico
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Once we got your information, we’ll do our best to help you.

    Thank you so much!

    #205723

    ignaciosantiago
    Participant
    This reply has been marked as private.
    #206346

    Rad
    Moderator

    Hi there,

    Unfortunately, sidebar for bbpress is not yet supported because forum pages are not existing pages (except for single topic and pages) and there is no way to assigned sidebar to non-existing page. I checked the coding just to confirm that.

    But, you can always use another alternative. Add this code at your child theme’s functions.php

    add_filter('ups_sidebar', 'force_bbpress_sidebar', 20);
    
    function force_bbpress_sidebar ( $sidebar ) {
    return x_is_bbpress() ? 'REPLACE_THIS_WITH_SIDEBAR_ID' : $sidebar;
    }

    Then just replace the dummy string with ID of the sidebar you created at Admin > Appearance > Sidebars.

    Hope this helps.

    #207101

    ignaciosantiago
    Participant

    It worked perfectly. Thank you very much.

    Will you add this change in new updates?

    #207460

    Christopher
    Moderator

    We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!

    #310304

    shivaniray
    Participant

    I would love to have this functionality as well!!

    #310368

    Paul R
    Moderator

    Noted.

    Have a nice day!

    #331520

    lostimagination
    Participant

    Hello,
    I use the solution you provided above to add the side bar to the forum,Thank you for that! Is there any way to put it on the left. instead of right?

    Thank you!

    #331658

    Lely
    Moderator

    Hello There,

    You’re welcome.
    The position of the sidebar will depend on the Global Layout you have set via Appearance > Customize > Layout and Design > Content Layout or on the template page.
    If that doesn’t work, would you mind providing us with login credentials so we can take a closer look to your settings? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Hope this helps.

    #331681

    khomiko
    Participant

    Favorited. Good post

    #331755

    Paul R
    Moderator

    Hi,

    Glad to know it helped.

    Have a nice day!

    #336200

    khomiko
    Participant

    I have a question. Let’s say I want a different sidebar for each group’s forum since each group is a different topic and I would like to put recent posts, etc in the sidebar for that certain forum.

    For example, let’s say I wanted a sidebar that had the recent posts activity in it for the “League of Legends” forums and I want that sidebar to only show up on League of Legends forums found in the League of Legends group.

    add_filter('ups_sidebar', 'force_bbpress_sidebar', 20);
    
    function force_bbpress_sidebar ( $sidebar ) {
    return x_is_bbpress() ? 'REPLACE_THIS_WITH_SIDEBAR_ID' : $sidebar;
    }

    Is it possible to replace x_is_bbpress() with like the link to that certain page or something along those lines?