Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1366496
    TheSoftwire
    Participant

    Hi,

    I’ve been searching the forums to remove the sidebar in the bbPress forums list (only). I found this customization:

    body.bbpress {
    background-color: #fff;
    }
    body.bbpress aside.x-sidebar.right {
    display: none;
    }
    body.bbpress .x-main.left {
    width: 100%;
    }

    But it removes the sidebar from the forums, topics and posts. I only want to remove it on the forums list page. Suggestions?

    Thank you.

    #1366740
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Could you please provide us with your website URL so we can take a closer look?

    Thanks.

    #1383406
    TheSoftwire
    Participant

    conmantheseries.com

    Also, while you are there, the social sharing icons have turned into little boxes for Chrome and Firefox (they are fine in Safari.) I’ve searched the forums but none of the solutions work for me.

    Thanks!

    #1383882
    Paul R
    Moderator

    Hi,

    You can try this code instead.

    
    body.forum-archive.bbpress  {
       background-color: #fff;
    }
    body.forum-archive.bbpress aside.x-sidebar.right {
       display: none;
    }
    body.forum-archive.bbpress .x-main.left {
       width: 100%;
    }
    

    Hope that helps.

    #1384518
    TheSoftwire
    Participant

    That worked – thank you.

    #1384522
    TheSoftwire
    Participant

    How do I get a specific sidebar to show now? I can only seem to get the main sidebar to show up. In the Sidebar section there is no way to select the bbPress forum pages – on the the main forum list.

    #1385046
    Rue Nel
    Moderator

    Hello There,

    Do you want to display a sidebar in your forum pages? I am just confused because the code in the previous reply will hide the sidebar in all forum archives. Could you please give us the url where to hide the sidebar and the url where the sidebar should display?

    Thank you in advance.

    #1385553
    TheSoftwire
    Participant

    The code you gave me allowed to have my forum listings full width which I wanted. See here:

    http://conmantheseries.com/con-man-game-forums/

    And the actual forums have sidebars now which I also wanted:

    New to the Con Man Game?

    But I can only get them to display the default sidebar. When I make a new sidebar, the option to assign the new sidebar these forums is not available to me. The forum pages are not listed in the sidebar creation section.

    Thanks!

    #1385854
    Rad
    Moderator

    Hi there,

    You mean assign specific sidebar? The default sidebar is always the Main Sidebar (eg. blog sidebar).

    Please add this code to your child theme’s functions.php

    add_filter( 'ups_sidebar', 'ups_display_sidebar_forum_single' );
    
    function ups_display_sidebar_forum_single ( $sidebar ) {
    return is_singular('forum') ? 'SIDEBAR_ID': $sidebar;
    }

    Then replace the SIDEBAR_ID with the ID of your preferred sidebar, you can find or create one at Admin > Appearance > Sidebars

    Hope this helps.

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