[buddypress-trac] [BuddyPress Trac] #9118: Set BP Block Themes minimal template hierarchy

buddypress-trac noreply at wordpress.org
Thu Mar 7 21:34:28 UTC 2024


#9118: Set BP Block Themes minimal template hierarchy
--------------------------+---------------------
 Reporter:  imath         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  14.0.0
Component:  Templates     |     Version:  1.0
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------
Description changed by imath:

Old description:

> Working on [https://github.com/buddypress/buddyvibes BuddyVibes], I've
> noticed the BP Default theme was weirdly using full (header, sidebar,
> footer) templates in the `members/single/settings/` folder while it
> wasn't the case for other folder.
>
> In order to have more consistency comparing Template Pack way of loading
> single member's settings screens and BP Block Theme way, we need to edit
> almost all `bp_core_load_template` occurrences so that it passes an array
> containing the BP Default templates and the next BP Block Theme ones.
>
> As I was into it, I've replaced for this theme the single item's root
> template from `home` to `index`.

New description:

 Working on [https://github.com/buddypress/buddyvibes BuddyVibes], I've
 noticed the BP Default theme was weirdly using full (header, sidebar,
 footer) templates in the `members/single/settings/` folder while it wasn't
 the case for the other folders.

 In order to have more consistency comparing Template Pack way of loading
 single member's settings screens and BP Block Theme way, we need to edit
 almost all `bp_core_load_template` occurrences so that it passes an array
 containing the BP Default templates and the next BP Block Theme ones.

 As I was into it, I've replaced for this theme the single item's root
 template from `home` to `index`.

--

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9118#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list