You are a life saver, thanks again for all your help!
Pick the template you want to use and make a copy of it called bbpress.php (in your child theme folder) and bbPress will figure out the rest.
My wordpress page has a few php page templates, the bbpress is using the default one, where would i change it to one of the others?
Wonderful! I have activated the child theme and all is well! Thanks much for your help!
THanks :), I’ll double check it and give it a shot!
Your child theme needs to call your normal WordPress theme as its parent. It will then use your normal theme and add your child theme customisations on top.
If you have followed the instructions there, especially Step 5 (including the bit where it tells you to follow the ones here: https://codex.wordpress.org/Child_Themes) then activating the theme should still use your normal theme as well.
I have followed this guide http://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
to create a child theme containing the default bbpress theme files. It appears in my wordpress admin CP themes but I don’t see how this lets me apply it to only the bbpress.
If I were to make it active it would retheme my entire wordpress site.
The breadcrumb uses the default Forum Index even if you use a shortcode to display your forum so it will always link back to the automatically created Forum Index.
If you only need the shortcode method because of the template problem then let’s fix the template so you don’t need the shortcode.
From: https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
On a plain vanilla install of bbPress using a “normal” wordpress theme, the plugin looks for the following templates from the active wordpress theme and “injects” the forum into (i guess) the first one it finds:
‘plugin-bbpress.php’,
‘bbpress.php’,
‘forums.php’,
‘forum.php’,
‘generic.php’,
‘page.php’
I’m guessing your theme doesn’t have one of those so bbPress appears to be using some kind of archive template.
You need to give bbPress a theme template to hook into. In your theme folder (or in a child theme if you want to do auto-updates with your theme) create a bbpress.php template, you can probably just create a duplicate of one of your theme templates and change its name.
Here’s my bbpress.php template: http://pastebin.com/ZquKQfmw (Adept is my theme name, hence @package Adept). I took my theme’s full width template and duplicated it, called it bbpress.php then changed the header information. bbPress will figure out the rest.
Running the latest versions:
WordPress: 3.6.1
BBPress: 2.4
It is best not to make changes to the bbPress core files because they will be lost when you update. The same for your theme files unless it’s already a custom theme. The best way is with a Child Theme.
In your theme folder (or preferably, child theme), create a subfolder called css with a file called bbpress.css so you have /wp-content/themes/%your-theme%/css/bbpress.css
The last rule defined overrides any previous, conflicting rules so this file will make your styles the last rules. See if it works then and if it still doesn’t then check for what is overwriting it – because something is.
(Specificity is usually the reason why your CSS doesn’t work the way you think it should. If there are styles in your code that are more specific, they will win. There is a good article on specificity at Smashing Mag.)
Sounds like you want some sort of membership plugin, have a look at https://wordpress.org/plugins/
Something like https://wordpress.org/plugins/members/ or https://wordpress.org/plugins/s2member/ might do what you want but there are lots of different WordPress plugins for this, just check for one that is recently updated and compatible with bbpress.
It’s not loading but I’m pretty sure that is a custom theme. You can see how other people are approaching this here: https://bbpress.org/forums/topic/forums-index-in-the-same-layout-as-other-bb-software/
You can see news about it in the trac thread that was linked earlier, this enhancement has now been moved to 2.6: https://bbpress.trac.wordpress.org/ticket/1958
You can also see how other people are achieving this: https://bbpress.org/forums/topic/forums-index-in-the-same-layout-as-other-bb-software/
I have a follow up question on the above topic. In the old BB we had each topic showed with a short summary field of the post content (usually just the first X characters of the content). Is there a way to do that with bbPress Forum topics? I do not see any existing widget that does this. In fact, is there even a field mapping for such a thing?
In WordPress terms this is known as ‘the_excerpt’ and is a function that will only show ‘x’ words of a post, this is not something you can transfer, it is a ‘display’ function in WordPress.
Oops, forgot another item. I want to bring in topic tags as well. How do I do that.
These are a little tricky mainly because understanding how they are implemented in WordPress is not an easy task as they are distributed throughout three tables.
Upload a csv file to http://gist.github.com or http://pastebin.com with a couple of examples of how your data currently has ‘tags’ associated to the topics and I will try to come up with something that is a little clearer than mud for you 😉
Hey, hopefully this is a simple fix.
I have identified a simple change I want to make to BBpress CSS:
div.bbp-breadcrumb {
float: left;
display:none;
}
I have disabled breadcrumbs globally on my site and also on the individual forum page but that did not work, so I went to try and change the BBpress CSS to achieve what I wanted.
Using any browsers inspect element feature, I can go into the CSS, enter the above alteration and it does exactly what I want…. herein lies the problem. I am using a custom theme (Jupiter) and general bbpress functionality is fine. However, entering the above CSS alteration into the themes stylesheets does nothing. So I tried to go a little further and I went directly to the BBpress CSS file and made the above alteration and saved…
Here is the strange thing, the BBpress CSS file has been altered correctly (I downloaded it to my desktop to confirm) but for some reason, the change is not being reflected on the forums on my site – When I inspect element, the alteration to the breadcrumbs is not being recognised and its as if it is continuing to load an old version of the CSS file. I have used various browsers, deleted my cache etc but nothing seems to work…
Any ideas?
Hellop,
this is a very good thread.
I would also like to see such a hierarchal feature on the next bbpress release.
Any news about this?
regards
I am not sure how to do the patch. I thought that I just replaced the old with the new, but when I did I ended up with an error and had to restore in order to be able to see the site at all. Maybe I don’t understand.
You have a template css conflict, problems are in your theme css and not in bbpress css.
First DIV not have a class called “reply” and not present issue, other post are a reply and have this class..
a.reply have problems with bbpress css.. You must to open your template css and remove line with issue.. But.. if you remove this line, you may have problems with other parts of your entire site.
Italiano: Hai un problema con il css del template che richiama classi che sono presenti anche in bbpress, devi sistemare il css del tema, però devi stare attento perchè modificando quello potresti incorrere in problemi ad altre parti del sito!! Inoltre il tuo sito è molto ma molto lento… forse è il caso che cambi template!!
Thanks for your answer,but which css,where i can found ? css of bbpress ? this ?
httpdocs / wp-content / plugins / bbpress / templates / default / css / bbpress.css ?
For example, when I go to the support forums for bbPress I see a widget on the left that lists links for tags that have appeared in the forums/posts. How would get that?
Sorry about the multiple messages.
Oops, forgot another item. I want to bring in topic tags as well. How do I do that.
thanks
Hello Stephen,
I have a follow up question on the above topic. In the old BB we had each topic showed with a short summary field of the post content (usually just the first X characters of the content). Is there a way to do that with bbPress Forum topics? I do not see any existing widget that does this. In fact, is there even a field mapping for such a thing?
thanks,
Mike
Hello,
i am going to build a forum with bbpress, i already have a genesis license,
i saw the genesis layout extras plugin mentioned in the plugin section but after looking at
the details i wanted to ask a question :-
what are the benefits of Genesis layout extras ?
and which is used as the child theme if any ? Genesis or bbpress ?
many thanks for your response
You are right niuserre, let me apologize,
As far as I am aware, we are not using shortcodes (we have not created any page for showing the forums but using directly the templates and urls filled on the settings).
I am working with a tweenty twelve child theme. My wordpreses version 3.6.1. My bbpress: Version 2.4 localized to spanish.
The exact issue is that whenever I try to edit a written post, raw html appears in the text area for editing. The html that appears is not only the one corresponding to the content of the reply i would like to edit.
It comprises also the breadcrums and much more tags and content of the page. Exactly inside the editor appears all the content inside the <div class=”entry-content”> tag (this element is the parent of<div id=”bbpress-forums”>).
I do not what that can be related with…
Thank you for your time,
For those saying they have the same thing, please can you be more specific to help identify the problem?
So versions and theme being used plus the steps you take to produce the error (imagine you’re talking someone on the phone through how to get the same problem you did so they can see it too, imagine they’re not good at this stuff so you have to be really obvious about everything).
Also, are you using bbpress shortcodes in a page to display your forums or not?