BBP_Default::enqueue_styles()
Load the theme CSS
Description Description
Source Source
File: templates/default/bbpress-functions.php
public function enqueue_styles() {
// Setup the default styling
$defaults = array(
'bbp-default' => array(
'file' => 'css/bbpress.css',
'dependencies' => array()
)
);
// Optionally support an RTL variant
if ( is_rtl() ) {
$defaults['bbp-default-rtl'] = array(
'file' => 'css/bbpress-rtl.css',
'dependencies' => array()
);
}
// Get and filter the bbp-default style
$styles = apply_filters( 'bbp_default_styles', $defaults );
// Enqueue the styles
foreach ( $styles as $handle => $attributes ) {
bbp_enqueue_style( $handle, $attributes['file'], $attributes['dependencies'], $this->version );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |