Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Buddypress Template Pak or Create a Child Theme or Something Else?

  • Avatar of rhek
    rhek
    Participant

    @rhek

    Hello,

    I am new to the WordPress and Buddypress world. I have a theme I want to use, but needs to be updated for Buddypress. So if I use the BuddyPress Template Pak I need to modify a number of templates or modify the header.php, footer.php, and sidebar.php and rename them header-buddypress.php, footer-buddypress.php, and sidebar-buddypress.php. I think I actually only need to modify sidebar-buddypress.php. Do I leave the name of the file sidebar-buddypress.php? Can there be problems on the next update of Buddypress if I modify any of these files?

    I have also considered creating a child theme using my current theme as the parent theme. Would this be a better way to go then editing template files?

    I am trying to do this the “best practices” way and trying to avoid problems updating Buddypress in the future.

    Thanks,
    Rhek

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    == So if I use the BuddyPress Template Pack I need to modify a number of templates or modify the header.php, footer.php, and sidebar.php and rename them header-buddypress.php, footer-buddypress.php, and sidebar-buddypress.php. ==

    You don’t modify header.php, footer.php and sidebar.php. You copy those files and name the copies as header-buddypress.php, footer-buddypress.php and sidebar-buddypress.php respectively. You only copy and rename copy of such file/s only if you need it/them. And, only the BP template files transferred to your theme folder in server will use them, i.e. your regular WP theme files won’t use those xxxx-buddypress.php files.

    == I think I actually only need to modify sidebar-buddypress.php. Do I leave the name of the file sidebar-buddypress.php? . ==

    sidebar-buddypress.php will only affect the sidebar of the BP Template files transferred to your WP theme’s folder in server. If there’s no sidebar-buddypress.php, the BP template files will take on your WP theme’s sidebar.php

    == I have also considered creating a child theme using my current theme as the parent theme. Would this be a better way to go then editing template files? ==

    If your WP theme is actively maintained/updated by theme developer, and contains info that encourages you to build a child theme for your customizations, then do so. Whether you use your WP theme or create a child theme of your WP theme, you would still need to install and activate the BP Template Pack and go through the BP Compatibility Process.

    If you have ascertained that you only need to create header-buddypress.php and/or footer-buddypress.php and or sidebar-buddypress.php in Step 3 of the compatibility process, then good for you. When you need to upgrade BP Template Pack plugin later, you won’t have to change anything with either of 3 xxx=buddypress.php files in your theme folder..

    Avatar of rhek
    rhek
    Participant

    @rhek

    Thanks for clearing all that up for me!
    Rhek

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

You must be logged in to reply to this topic.