Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can you modify bbpress.php? for child theme


  • sourpatch
    Participant

    @sourpatch

    I was wondering if anyone can tell me please if you can modify bbpress.php file and incorporate it into a child theme in the wordpress themes folder.
    I tried making a bbpress.php in my child theme folder and the result was a blank screen. It did not work.
    Your advice is appreciated!

    I’m using the twenty ten wordpress theme and installed the bbpress plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Instead of bbpress.php try bbpress-functions.php and see¬†http://codex.bbpress.org/theme-compatibility/ for more info


    sourpatch
    Participant

    @sourpatch

    hi thank you for the quick response, helps a lot when you are trying to work your way through a problem. I must first say though I am new to this wordpress php bbpress thing.

    SO you mentioned I use bbpress-functions.php? Can you be more specific I know you already are but I would like to know the exact steps to take if you will.

    I know changing the following code in bbpress.php for the plugins>bbpress file. but if I change this than the updates will delete the changes I make so therefore I need to make a child theme. So where do I paste the following code in bbpress-functions.php?

    public static function register_post_types() {

    // Define local variable(s)
    $post_type = array();

    /** Forums ************************************************************/

    // Forum labels
    $post_type['labels'] = array(
    ‘name’ => __( ‘Enchanted’, ‘bbpress’ ),
    ‘menu_name’ => __( ‘Enchanted’, ‘bbpress’ ),
    ‘singular_name’ => __( ‘Forum’, ‘bbpress’ ),
    ‘all_items’ => __( ‘All Forums’, ‘bbpress’ ),
    ‘add_new’ => __( ‘New Forum’, ‘bbpress’ ),
    ‘add_new_item’ => __( ‘Create New Forum’, ‘bbpress’ ),
    ‘edit’ => __( ‘Edit’, ‘bbpress’ ),
    ‘edit_item’ => __( ‘Edit Forum’, ‘bbpress’ ),
    ‘new_item’ => __( ‘New Forum’, ‘bbpress’ ),
    ‘view’ => __( ‘View Forum’, ‘bbpress’ ),
    ‘view_item’ => __( ‘View Forum’, ‘bbpress’ ),
    ‘search_items’ => __( ‘Search Forums’, ‘bbpress’ ),
    ‘not_found’ => __( ‘No forums found’, ‘bbpress’ ),
    ‘not_found_in_trash’ => __( ‘No forums found in Trash’, ‘bbpress’ ),
    ‘parent_item_colon’ => __( ‘Parent Forum:’, ‘bbpress’ )
    );

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

You must be logged in to reply to this topic.