Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing the word 'Forum'


  • Sam Scholfield
    Participant

    @sam-s

    Hi,

    I have just installed bbPress as a plugin, and want to change the word ‘Forum’ or ‘Forums’ to Newsroom.

    Is there a way to easily do this?

    I have looked into creating a child theme, and adding the bbPress files into my current theme, but all of this seems like overkill for just changing a word.

    Any help or advice would be appreciated!

    Thanks,

    Sam

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

  • varsitysmack
    Participant

    @varsitysmack

    Change your forum base located here: http://www.yoursite.com/wp-admin/options-general.php?page=bbpress

    from ‘forums’ to ‘newsroom’.

    Uncheck the box next to ‘Prefix your forum area with the Forum Base slug (Recommended)’ if you don’t want the ‘forum’ in the URL as well. Just make sure you don’t run into any URL duplications.


    Sam Scholfield
    Participant

    @sam-s

    Thanks for your reply varsitysmack, however that only changes the URL. It doesn’t change the H1 title on screen, or the breadcrumbs.

    I ended up moving the bbpress files into the main theme directory and editing those. I also added a filter into my functions file to change the breadcrumbs.

    It still seems like overkill, but it’s working for now.

    Thanks,

    Sam


    smell-bag
    Member

    @smell-bag

    Hi I want to remove the “Forums” link in the breadcrumbs and have it use the forum index page instead, could you post the code you used in functions.php to filter the breadcrumbs please?

    Thanks in advance.


    Sam Scholfield
    Participant

    @sam-s

    Here you go:

    add_filter(‘bbp_get_forum_archive_title’, ‘forum_title’);

    function forum_title() {

    return ‘Noticeboard’;

    }

    Replace Noticeboard with any term you would like to change Forums to.

    Hi Scoe, Thanks for the Code to alter the forums breadcrumbs. I was wondering if you could let me know which file you found the h1 located in? in order to change that? I’ve been looking everywhere.

    I think you brought that file into your main theme directory to overwrite bbpress’s standard files?

    Yep thats right. It is in the file archive-forums.php

    Look for the line:

    <h1 class=”entry-title”><?php bbp_forum_archive_title(); ?></h1>

    Simply add the new name in the brackets e.g.

    <h1 class=”entry-title”><?php bbp_forum_archive_title(‘New Name’); ?></h1>

    It would be nice if there was an option in the admin to change the name of Forum. Maybe one day!

    Sam

    Hi Sam,

    I had a hard time looking for the archive-forums.php, until I found it in the bbp-twentyten theme folder in bbp-themes folder. From my understanding I’m not using this theme for bbPress (or am I?)

    I made the changes as you described and nothing takes effect. I’ve tried moving about the archive-forums.php into different areas, my main theme folder, the bbPress includes folder and others to see if I could find the right spot it needed to be in order to be called, but without luck.

    Where do I need to place this file in order to have it activated or used by bbPress?

    I also tried creating a new ‘theme’ for bbPress following the direction here.. http://codex.bbpress.org/legacy/themes-and-templating/

    But it seems to call in my bbPress theme into my main WordPress theme area, and I don’t want to change th WP theme, I just want bbPress to use this file to generate it’s <h1> Title.

    Any help would be awesome. Thanks for your time!


    benrainir
    Member

    @benrainir

    Hi, im testing bbpress. thanks

    Bla

    Bla

    Ok! Good Bye!


    Lynq
    Participant

    @lynq

    I use this in my main theme page loop.

    <?php if ( is_front_page() ) { ?>
    // Main homepage H1.
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } else if (get_post_type() == 'forum') { ?>
    // Forum H1
    <h1 class="entry-title">Forum Title</h1>
    <?php } else { ?>
    // Fallback
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } ?>

    Let me now if this helps, good luck!

    Thanks Lynq! I placed this bit of code into my page.php template file and it’s working like a charm. I didn’t know there was a ‘forum’ post type.

    Great! Thanks so much for your help!


    Lynq
    Participant

    @lynq

    No problem, glad to be of help.

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

You must be logged in to reply to this topic.