Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-nouveau vs bp-legacy


  • devoctopix
    Participant

    @devoctopix

    Hi,

    I was wondering if it was possible to build a theme compatible with both existing template packs (nouveau and legacy).

    For MYTHEME/buddypress/members/members-loop.php can we have MYTHEME/buddypress/bp-nouveau/members/members-loop.php and MYTHEME/buddypress/bp-legacy/members/members-loop.php ?

    And how to manage the fact that the theme can be used for BP3.0+ and BP2.9.X ?

    Thanks in advance!

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

  • Varun Dubey
    Participant

    @vapvarun

    @devoctopix it will be hard to keep support for both templates in a single theme. You can force Legacy via ‘buddypress-use-legacy’ on existing themes.


    devoctopix
    Participant

    @devoctopix

    Yes I understand!

    “buddypress-use-legacy” ? I can not find anything in the documentation about this. Is it a constant?

    Thanks a lot for your feedback!


    Varun Dubey
    Participant

    @vapvarun

    You can define following

    add_theme_support('buddypress-use-nouveau');

    or

    add_theme_support('buddypress-use-legacy');


    Varun Dubey
    Participant

    @vapvarun

    It will help you to set default template pack for the theme, little confusing for now as site admin’s choices will not work inside BuddyPress Option after defining add_theme_support.


    devoctopix
    Participant

    @devoctopix

    Thanks a lot @vapvarun! Very helpful!


    Paul Gibbs
    Keymaster

    @djpaul

    I am pretty sure themes will choose to use one template pack or another. It will be almost impossible to support multiple template packs.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar