Deregister wp-listings-single.css?
-
Hi there,
In the plugin you have two options to deregister the stylesheets for ‘wp-listings’ and ‘wp-listings-widgets’.
I also wish to deregister ‘wp-listings-single’ and enqueue a child stylesheet.I have tried the following but the plugins stylesheet still loads first.
I hope you can help! 🙂
//* Load WP Listings Style Sheet from Child Theme add_action( 'wp_enqueue_scripts', 'load_alta_styles' ); function load_alta_styles() { wp_dequeue_style( 'wp_listings' ); wp_deregister_style( 'wp_listings' ); wp_dequeue_style( 'wp_listings_widgets' ); wp_deregister_style( 'wp_listings_widgets' ); wp_dequeue_style( 'wp_listings_single' ); wp_deregister_style( 'wp_listings_single' ); wp_enqueue_style( 'wp-listings-child', get_stylesheet_directory_uri() . '/css/wp-listings.css' ); wp_enqueue_style( 'wp-listings-widgets-child', get_stylesheet_directory_uri() . '/css/wp-listings-widgets.css' ); wp_enqueue_style( 'wp-listings-single-child', get_stylesheet_directory_uri() . '/css/wp-listings-single.css' ); }
Thank you in advance!
Great Plugin!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Deregister wp-listings-single.css?’ is closed to new replies.