Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/22/2024 06:11:58 AM (15 months ago)
Author:
imath
Message:

Create a specific CSS file for BP Tooltips

  • Move BP Tooltips default CSS rules into their own BP Core file so that it's easier to add this file as a style dependency.
  • Let BP Template Packs override this BP Core file and create a new bp-tooltips.css file into BP Nouveau to do so.
  • Use this BP Core file as a dependency to Admin's Hello styles as well as BP Template packs main styles.
  • Enqueue BP Tooltips CSS rules when Block widgets are rendered.

Props jnie

Fixes #9070 (branch 12.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-members/bp-members-blocks.php

    r13677 r13710  
    663663            implode( "\n", $member_avatars )
    664664        );
     665
     666        // Only enqueue BP Tooltips if there is some content to style.
     667        wp_enqueue_style( 'bp-tooltips' );
    665668    } else {
    666669        $widget_content .= sprintf(
Note: See TracChangeset for help on using the changeset viewer.