Issues Removing the Sidebar
-
Hi guys,
I have done my research and I have been able to remove the side bar from (what I think is) the top level of the forums by editing the archive-forum.php file.
When I select a forum (I currently only have one) and a topic in the forum (again, I only have one) I still see my theme’s sidebar. I decided to modify the archive-topic.php file and comment out the
get_sidebar();
line (as I did above), but unlike above, this did not work.I commented out the
get_sidebar();
line for every file in the plugins/bbpress/templates/default/extras folder. This did not work for me.My question is: how do I remove my theme’s sidebar from the list of forums, topics and inside the topics too?
-
You could use CSS?
In the body tag there is a bbpress class, soy you could do something like:
.bbPress .sidebar { display: none; }
good luck!
Thanks for your reply.
This would work, but unfortunately it is my theme’s sidebar that is displaying, not BBPress’ side bar.
Any other suggestions?
What is is your URL? I will give you the CSS for your theme…
Thanks!
It is my theme sidebar that appears once you start to enter the forums. Currently I have it removed at the top level.Kslad
this will bring joy to your heart.
Add it to your css file wherever you add other customization mods:
body.bbPress #sidebar {display:none;}
body.bbPress .post {width:100%;}It will remove the sidebar and make your forum 100% width.
Cheers!
spence
Thanks Spence,
I’ll give this a go as soon as our website comes back up. Our host is having some issues.
I’ll report back and let you know how it goes.I appreciate your efforts.
Grumble… yea I thought that would work :p
Thanks to both of you for your replies.
It did work!Lynq, sorry for doubting your answer. =(
Tried this and got rid of side bar but it wont go full width 🙁
http://www.evilsourcegaming.com/forums/
any help?
#GatorESG,
for your theme, you need to use this instead (your content is contained in a differently named div:
body.bbPress #sidebar {display:none;}
body.bbPress #main {width: 100%;}
Cheers!
spence
Tried this and it didn’t work, http://stickydestroyer.com/forum/
Help, please?BUMP!
Hey,
i’ve read this post and was wondering what file i put this in:
body.bbPress #sidebar {display:none;}
body.bbPress .post {width:100%;}http://youniversityhub.com
http://youniversityhub.com/forums1Thanks.
AlexHi Alex,
you would put that in the highest-ranking css style sheet of your theme or child theme, and be sure it goes at the bottom to ensure it takes precedence.In your case, since you are using the parent NewsPro theme, you would add it to the bottom of the style.css stylesheet 😉
Cheers!
spenceHey Spence.
I actually did that but nothing happened. I will keep changes so you can see the page again.
Any ideas?
Thanks for the support!This is in the Newspro style.css sheet.
“…….
.PrimaryLeft .featuredPost p {
width:160px;
}
#wrapper .featuredPost {
position:relative;
}body.bbPress #sidebar {display:none;}
body.bbPress .post {width:100%;}
“Try adding “!important” to each attribute…
Like…”:none!important;”
No dice.
“body.bbPress #sidebar {display:none!important;}
body.bbPress .post {width:100%!important;}”Any other ideas?
Thanks! Appreciate the help.Did you set your page to fullwidth
Doesn’t the line below suffice in the stylesheet or is there something else i need to do?
“body.bbPress .post {width:100%!important;}”
It should but then again some themes aren’t compatible with bbpress what I do is I use custom pages with the shortcodes that way I know it displays right
You should be resetting the width on
#container
, not.post
.That didn’t work either.
Any other ideas? Thanks guys.The sidebar is still showing up so maybe #sidebar could be wrong?
Anybody else have any ideas??
Use the “Widget Logic” PlugIn and put !is_bbpress() into the respective field of your widget(s).
You have to do it for all widgets though …
Best regards
- You must be logged in to reply to this topic.