Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/04/2020 06:13:48 PM (3 years ago)
Author:
imath
Message:

BP Nouveau gets ready for Twenty Twenty-One

Improve the BP Nouveau template pack to make BuddyPress appearance looks great into the next WordPress default theme (Twenty Twenty-One).

Use the companion stylesheet feature to only load CSS rules specific to Twenty Twenty-One if it is the active theme or the parent of the active theme.

Props vapvarun

Fixes #8395

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/template-tags.php

    r12774 r12814  
    14491449     *
    14501450     * @since 3.0.0
     1451     * @since 7.0.0 Add a class to inform about the active Theme.
    14511452     *
    14521453     * @return string CSS classes
    14531454     */
    14541455    function bp_nouveau_get_container_classes() {
    1455         $classes           = array( 'buddypress-wrap' );
     1456        $classes           = array( 'buddypress-wrap', get_template() );
    14561457        $component         = bp_current_component();
    14571458        $bp_nouveau        = bp_nouveau();
Note: See TracChangeset for help on using the changeset viewer.