Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #896186
    bnskipper
    Participant

    Hello,

    I’m pretty new to this and I apologize if this has been asked before. I have my forum set to Content left, sidebar right an am using global content layout but the sidebar will not display on any of the forum topic pages. How do I go about fixing this?

    http://briarnation.com/forum/

    #897171
    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 following code in child theme’s functions.php file :

    
    // Add custom sidebar to bbpress//
    //===================================================
    add_filter('ups_sidebar', 'force_bbpress_sidebar', 20);
    
    function force_bbpress_sidebar ( $sidebar ) {
    return x_is_bbpress() ? 'ups-sidebar-custom-sidebar' : $sidebar;
    }

    Instead of ups-sidebar-custom-sidebar in provided code add your sidebar ID.

    Hope it helps.

    #899771
    stephanie g
    Participant

    Hello,

    I’m having trouble having this solution work for me. I inserted the code in my child theme functions.php and created the appropriate custom sidebar but there is a blank space next to my forums where my sidebar content should be.

    Can you tell me what I’m doing wrong? My url is http://www.spiralpraxis.org. I will send you my login info immediately.

    #899776
    stephanie g
    Participant
    This reply has been marked as private.
    #899812
    stephanie g
    Participant

    Sorry, I realize my error. The sidebar can be accessed through widgets in dashboard. Thanks!

    #900842
    Jade
    Moderator

    Glad to hear you figured it out Stephanie. Cheers!

  • <script> jQuery(function($){ $("#no-reply-896186 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>