Tagged: x
-
AuthorPosts
-
February 10, 2017 at 6:41 pm #1366496
TheSoftwireParticipantHi,
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.
February 10, 2017 at 11:40 pm #1366740
Prasant RaiModeratorHello There,
Thanks for writing in!
Could you please provide us with your website URL so we can take a closer look?
Thanks.
February 23, 2017 at 2:45 pm #1383406
TheSoftwireParticipantconmantheseries.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!
February 23, 2017 at 11:03 pm #1383882
Paul RModeratorHi,
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.
February 24, 2017 at 12:22 pm #1384518
TheSoftwireParticipantThat worked – thank you.
February 24, 2017 at 12:28 pm #1384522
TheSoftwireParticipantHow 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.
February 24, 2017 at 9:27 pm #1385046
Rue NelModeratorHello 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.
February 25, 2017 at 1:15 pm #1385553
TheSoftwireParticipantThe 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:
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!
February 25, 2017 at 9:00 pm #1385854
RadModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1366496 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
