Force BuddyPress to use a specific template pack for your theme

Are you a theme developer and worried about supporting multiple template packs for BuddyPress?  Or do you want to control which BuddyPress template pack your theme should work with.

Well, you can override site admin’s preference by adding support for a specific template pack.

For example, If you want to make sure that your theme only uses BuddyPress Legacy template pack even if a site admin chooses otherwise, You can configure that by adding following line

And in case you want to force BuddyPress always use BP Nouveau template pack, you may use the following.

Have fun!

Leave a Reply

Are you looking for support?

Please ask support questions in BuddyDev Forum and help us serve you better. Please use comment for general discussion/feature suggestions.

Your email address will not be published. All the fields marked as * are required.

If you are posting code, please use <pre> { Your Code Block } </pre>. Example:- <pre> echo $name; </pre>

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">