Skip to:
Content
Pages
Categories
Search
Top
Bottom

LABELS


  • iol2014
    Participant

    @iol2014

    Please, I need to know how to change the labels ‘Forum’ to another word, everywhere in bbpress, can you help me? thanks a lot in advance.

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

  • Robin W
    Moderator

    @robin-w

    yes,

    Dashboard>settings>forums>forum root slug to change the urls and breadcrumbs – just change forums to what you want it to say

    Tp change the forum heading on the forums list, make a copy of

    wp-content/plugins/bbpress/templates/default/bbpress/loop-forums.php

    and place this in a folder

    /wp-content/themes/%your-theme%/bbpress/

    see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ for a tutorial on this subject

    Then edit line line 19 which says

    <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li>
    

    to

    <li class="bbp-forum-info"><?php _e( 'Elephant', 'bbpress' ); ?></li>
    

    and it will say elephant instead of forum.


    iol2014
    Participant

    @iol2014

    Thank you a lot robin-w, I made what you wrote and it works but there is one thing that did not work and it is this:
    ‘bbp-breadcrumb-current’ it shows ‘Forums’
    but I changed the ‘ Forum Root Slug’ and the ‘Single Forum Slugs’, do you know what I have to do more? because I tried to change the name of the directory in file manager but it creates a mess and it stops wordpress to work.
    Thanks in advance.


    iol2014
    Participant

    @iol2014

    Thank you a lot robin-w, I made what you wrote and it works but there is one thing that did not work and it is this:
    ‘bbp-breadcrumb-current’ it shows ‘Forums’
    but I changed the ‘ Forum Root Slug’ and the ‘Single Forum Slugs’, do you know what I have to do more? because I tried to change the name of the directory in file manager but it creates a mess and it stops wordpress to work.
    Thanks in advance.


    Robin W
    Moderator

    @robin-w

    That should have worked.

    Try resetting your permalinks

    go into

    Dashboard>settings>permalinks and just click save

    If that doesn’t do it, can you come back and tell me what you breadcrumb for forums comes out as

    eg

    home>forums>forum


    iol2014
    Participant

    @iol2014

    Hello, thank you very much, I did as you wrote,
    I re-saved the permalinks
    I created a new page and inserted this shortcode [bbp-forum-index]
    and breadcrumb now is: Home › Forums
    while I changed the name of the root from ‘forums’ to ‘blogs’ because I want bbpress to show ‘blogs’ as its title and name everywhere in bbpress.
    Thank you in advance


    Robin W
    Moderator

    @robin-w

    Ok, try adding this to your functions file.

    And come back and let me know if it worked !


    Robin W
    Moderator

    @robin-w

    sorry should have put the actual code in the post !

    //function to change name forums in breadcrumb to Blogs 
    function mycustom_breadcrumb_options() {
        $args['root_text']    = 'Blogs';
    	return $args;
    }
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options') ;
    
    

    iol2014
    Participant

    @iol2014

    Hello,
    thank you a lot but it does not work (if I made it right, I hope so 🙂 ), but it is not a problem to change breadcrumb’s name, we can delete it because it is not important for me to show it, where I have to do it?
    thanks a lot in advance Robin


    Robin W
    Moderator

    @robin-w

    code to remove it is

    function bm_bbp_no_breadcrumb ($param) { return true;
     }
    add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');
    

    iol2014
    Participant

    @iol2014

    thanks, in which file?


    Robin W
    Moderator

    @robin-w

    In your functions file in your theme (as with the last filter)

    Wp-content/%yourtehemename%/functions.php

    where %yourthemename% is the name of your theme 🙂


    iol2014
    Participant

    @iol2014

    it seems to be a never ending story hahah 🙂 thanks a lot for helping me
    there is no breadcrumb into this theme ‘twenty eleven’: no page and no posts has it, other than the page which contains bbpress shortcode…
    I searched in bbpress editor, for the code you wrote, but I didn’t find it exactly


    Robin W
    Moderator

    @robin-w

    umm, Now I’m a bit confused.

    The filter only affects the bbp breadcrumb, so that fact that your theme doesn’t have breadcrumbs is irrelevant.

    If you just add that code to your themes functions, it will be used by bbPress as it loads and not display.

    I presume that’s where you put the previous code to change to blogs? If not try that code again!

    Whilst you can add it to a default theme such as twenty eleven, keep a note of it, as any theme upgrade will overwrite it. you should consider a child theme to let you make changes without affecting the core code and themes see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/ for some info on child themes


    iol2014
    Participant

    @iol2014

    I did again what you pointed out, and placed your code into the file functions.php of the theme but nothing changed…


    Robin W
    Moderator

    @robin-w

    Presume you’re not using a cahing plugin. Try refreshing your browser

    Othersie I’m stumped, it and the previous solution should work

    Can you post your site’s url so that I can see


    iol2014
    Participant

    @iol2014

    I did it again after having refreshed the browser, but nothing,
    then I deleted the cookies, switched off and restarted the pc but nothing changed, deleted and reinstalled bbpress, but nothing new happened
    And more I noticed that there are into the different files of bbpress some messages that report the name ‘forum’ and they remain like that even if I changed the slugs, i.e. ‘This forum contains 1 topic, and was last updated by admin 22 minutes ago.’
    So I entered each file to delete the instruction for breadcrumb, and try to find those messages, one by one to change ‘forum’ into the word of my choice, but it is a long job to do…


    Robin W
    Moderator

    @robin-w

    ok, I think that’s the way to go, as whilst all my suggestions work, something is not right in the way you are implementing them, not your fault, wordpress “under the bonnet” takes a little learning

    Good luck, an come back if you spot other areas, and I’ll try and resolve


    iol2014
    Participant

    @iol2014

    You are right Robin
    thank you for your help 🙂


    Robin W
    Moderator

    @robin-w

    You should create a bbpress directory under your theme

    ie

    wp-content/themes/yourthemename/bbpress

    and copy any bbpress templates to there.

    bbPress will then use these instead of the default template ones

    Otherwise any templates you alter will be overwritten by any upgrades and you’ll have to do the work all over again !

Viewing 19 replies - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.
Skip to toolbar