Issues with Buddypress wp_dequeue_style
-
Hi,
I want to remove OceanWP buddypress.min.css and I’m having issues with wp_dequeue_style. I’m trying the below code and it still doesn’t remove the buddypress css file loaded by oceanwp
function oceanwp_child_enqueue_parent_style() { $theme = wp_get_theme( 'OceanWP' ); $version = $theme->get( 'Version' ); // Load the stylesheet wp_enqueue_style( 'ialstyle', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version ); // remove oceanwp buddypress style wp_dequeue_style( 'oceanwp-buddypress' ); wp_deregister_style( 'oceanwp-buddypress' ); } add_action( 'wp_enqueue_scripts', 'oceanwp_child_enqueue_parent_style', 999999 );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issues with Buddypress wp_dequeue_style’ is closed to new replies.