Opened 5 years ago
Closed 5 years ago
#7730 closed enhancement (fixed)
Allow theme to override site template pack choice
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Templates | Keywords: | |
Cc: |
Description
As part of the work for Nouveau, we need a way to let a theme override the site template pack setting.
e.g. new themes may force the "nouveau" template pack, or vice-versa, etc.
Attachments (2)
Change History (9)
#1
@
5 years ago
Version 0, edited 5 years ago
by
(next)
#5
@
5 years ago
Will Patch and test when have a minute.
We seem to have an issue with Trac not seeming to post notifications, at least not to slack where I normally initially pick up on ticket comments, think email pings might also be failing?
Note: See
TracTickets for help on using
tickets.
1.patch proposes support for
add_theme_support("buddypress-use-XXX")
, whereXXX
is the ID of any registered template pack.e.g.
`
add_theme_support("buddypress-use-nouveau");
add_theme_support("buddypress-use-legacy");
`
If one is set, and a template pack with that ID exists, then BuddyPress will load that instead of the site preference.