BP Nouveau Dequeued CSS – member and group cover image dissapears
-
Wordpress 5.4
Buddypress 5.2
Theme: Twenty NineteenVersion: 1.5Hi guys
I’m looking to create a custom theme built around BP Nouveau and have dequeued the css, but doing so makes the member and group cover images disappear.
In BP legacy it was possible to follow this tutorial (https://codex.buddypress.org/themes/buddypress-cover-images/), but in Nouveau it doesn’t seem work.
Here’s the old code for it
function mytheme_cover_image_callback( $params = array() ) { if ( empty( $params ) ) { return; } return ' #buddypress #header-cover-image { height: ' . $params["height"] . 'px; background-image: url(' . $params['cover_image'] . '); } '; } function mytheme_cover_image_css( $settings = array() ) { $settings['callback'] = 'mytheme_cover_image_callback'; return $settings; } add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'mytheme_cover_image_css', 10, 1 ); add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'mytheme_cover_image_css', 10, 1 ); function your_theme_cover_image_css( $settings = array() ) { $theme_handle = 'bp-parent-css'; $settings['theme_handle'] = $theme_handle; $settings['callback'] = 'mytheme_cover_image_callback'; return $settings; } add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 ); add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 );
Anyone got an idea?
Thanks for your time!
- You must be logged in to reply to this topic.