Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add forum description to forums index


  • chuckstr
    Participant

    @chuckstr

    Hi,
    I’m trying to add the forum’s description to be under the forum title on the page-front-forums (index) page. Just like it displays on the single-forum page. Could someone please show me the proper code?

    I’ve already changed the css .bbp-forums-list li to “display: block;”

    Thank you!
    Chuck S.

Viewing 9 replies - 1 through 9 (of 9 total)

  • Robin W
    Moderator

    @robin-w

    I just added a new page called “forums” and put the text there.
    then put the forums index shortcode (bbp-forum-index put in square brackets) after it

    or is this not your problem?


    chuckstr
    Participant

    @chuckstr

    Hi Robin,
    Thanks for the reply. In addition to as you have described, I would like the forum description to appear under each forum title within the index page in block display.
    Chuck S.


    oweniverson
    Participant

    @oweniverson

    i have the same question. it seems there are many topics on this but no resolution.

    i have a Page (Forums) where i put the text description for the Index List of Forums (“Here are a bunch of Forums!”) followed by the index [bbp-forum-index]. that works fine.

    now, if i click a single forum (“Forum 1″) in the index list, i only get the Forum Title, but not the description i entered into the text field when i created the forum. should i be making a Page for each single forum?

    i suspect there’s a conflict with a plugin. i deactivated all but bbPress, cleared my browser cache, and force-refreshed the page and still nothing.

    FWIW, my plug-ins are:
    bbPress
    Custom Meta Widget
    jonradio Private Site
    NextGEN Gallery by Photocrati
    Peter’s Login Redirect
    TablePress
    The Events Calendar
    User Avatar

    any know issues with these??


    Robin W
    Moderator

    @robin-w

    I’ve just added the code I think you’re after to the documentation viz

    http://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#16-adding-description-to-forum-pages

    Come back if that’s not what either of you were after !


    oweniverson
    Participant

    @oweniverson

    Thanks Robin! That was exactly what i was looking for. Any thoughts why my Description line might be indented, rather than left justified as your example shows?


    oweniverson
    Participant

    @oweniverson

    i’m not a developer by any means, but this seems to work (there’s probably a better way :)
    in my bbpress.css file here “wp-content\plugins\bbpress\templates\default\css”
    i just broke out “div.bbp-forum-content” from this:

    #bbpress-forums div.bbp-forum-content,
    #bbpress-forums div.bbp-topic-content,
    #bbpress-forums div.bbp-reply-content {
    	margin-left: 130px;
    	padding: 12px 12px 12px 0;
    	text-align: left;
    }
    

    to this:

    #bbpress-forums div.bbp-forum-content {
    	margin-left: 0px;
    	padding: 12px 12px 12px 0;
    	text-align: left;
    }
    
    #bbpress-forums div.bbp-topic-content,
    #bbpress-forums div.bbp-reply-content {
    	margin-left: 130px;
    	padding: 12px 12px 12px 0;
    	text-align: left;
    }
    

    and set that left margin to 0 px rather than 130.
    let me know if there’s a better or more elegant way!


    Robin W
    Moderator

    @robin-w

    elegant – depends !

    If you simply alter this file then on any bbpress version update you’ll lose the changes, so make a note of them.

    There are alternatives

    1. Add the css styling change to the style.css file within your child theme.

    If you have a child theme, then this is ideal, as neither plugin nor theme update will affect your change. Simply add the code below to your style.css

    /*Styling for forum description */
    #bbpress-forums div.bbp-forum-content {
    clear:both !important;
    margin-left: 0px !important;
    padding: 0 0 0 0 !important;
    	}
    

    2. If you only have a main theme, then consider using a child theme – it’s quick and easy to create one, basically it’s just a theme that you create that says “use this main theme, but then add these bits”. Google child theme video and you’ll get loads of help.

    3. Add this to the style.css in your main theme
    But you’ll need to keep a note of it for theme upgrades, so this is really no better than changing in the bbPress template, and neater to do it in bbPress than your theme

    4. Make a directory called css in your theme (either child or main) and copy the bbpress.css file into it. Then make changes there. this then won’t be overwritten on upgrades, but you will not get the benefit of changes to the default bbpress.css that may be in upgrades.

    Overall 1. is by far the best choice, as you keep the code no matter what happens. Otherwise keep a note of your changes (which are fine, and are what I did to test prior to putting the end result in my style.css), so that you can replicate them on upgrades.


    oweniverson
    Participant

    @oweniverson

    i do have a child theme, but it didn’t even occur to me (only been into this WordPress thing for about a week).

    thanks for being so responsive!


    Robin W
    Moderator

    @robin-w

    great – no problem !

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.