Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to create template


  • Famous
    Participant

    @famous

    How do I create a buddypress child template, not technically child theme, however how do I manipulate certain files like the profile?

    I tried copying all the files from 1 to 2, but that doesn’t seem to work
    /public_html/wp-content/plugins/buddypress/bp-themes/bp-default/members/single /public_html/wp-content/themes/myTheme/buddypress/members/single/

    Thanks

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

  • djsteveb
    Participant

    @djsteveb

    I think you are playing with the old bp default theme files which are no longer being used(?)

    see – https://codex.buddypress.org/themes/bp-default-theme-moving-forward-with-bp-1-9/

    and perhaps -> https:// codex.buddypress .org/themes/

    although I am pretty sure a bunch of the info on that buddypress .org / themes is talking about the old ways of doing things.. so check dates.. I think a bunch of that info is deprecated… however you may find what you are looking for in the codex..

    maybe what you are looking for in relation to profiles is touched on here: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/


    bringmesupport
    Participant

    @bringmesupport

    The BuddyPress Codex explains how to do this here:

    Theme Compatibility & Template Files

    You were on the right track, but you are copying the wrong files from the BuddyPress core. If you want to override the BuddyPress Templates in your own theme, you would copy the files you wanted to override from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress to /wp-content/themes/myTheme/buddypress, just keep the file structure intact in your theme.

    For example, if you just wanted to modify the members loop, copy just the members-loop.php file from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php and paste just that file to /wp-content/themes/myTheme/buddypress/members/members-loop.php in your theme. If the folders don’t already exist in your theme, just create them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to create template’ is closed to new replies.
Skip to toolbar