Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable the default SearchWP Live Search results theme CSS while retaining the positioning
<?php
function my_remove_searchwp_live_search_theme_css() {
wp_dequeue_style( 'searchwp-live-search' );
}
add_action( 'wp_enqueue_scripts', 'my_remove_searchwp_live_search_theme_css' );
@mister-cairns

This comment has been minimized.

mister-cairns commented May 24, 2017

This doesn't seem to work in WP 4.7.5. I've added to functions.php and it's still outputting <link rel="stylesheet" href="/wp-content/plugins/searchwp-live-ajax-search/assets/styles/style.css"> in <head>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment