Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #192
    dan
    Participant

    Hi,

    I wanted to change the maximum maximum length of characters allowed in title for bbPress?

    How do I do that?

    • This topic was modified 1 year, 4 months ago by dan.
    • This topic was modified 1 year, 4 months ago by roel.
    #197

    First go to your functions.php located in wp-content/themes/{name of your theme}

    Open and copy-paste this code:

    add_filter (‘bbp_get_title_max_length’,’change_title’) ;

    Function change_title ($default) {
    $default=80 ;
    Return $default ;
    }

    Change $default number to maximum length of characters you wanted . So for example if you want 120 maximum length of characters, edit it this way

    add_filter (‘bbp_get_title_max_length’,’change_title’) ;

    function change_title ($default) {
    $default=120 ;
    Return $default ;
    }

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.