Legacy and Nouveau Templates in One Theme
-
I have had a fear of missing out ever since nouveau came out so I keep wanting to maintain both template packs for the same theme and I’ve still been hung up on this question: https://buddypress.org/support/topic/bp-nouveau-vs-bp-legacy/
Is this the solution or on the right path?
add_filter( 'bp_get_template_stack', 'my_template_pack_stack' ); function my_template_pack_stack( $stacks = array() ) { $retval = array(); if( bp_get_theme_package_id() === 'nouveau') { $retval[] = '/buddypress/bp-nouveau'; } elseif(bp_get_theme_package_id() === 'legacy') { $retval[] = '/buddypress/bp-legacy'; } foreach ($stacks as $stack) { $retval[] = $stack; } return $retval; }
seems to work along with conditionally including custom stylesheet for respective template pack but just not sure about it
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.