Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active October 20, 2020 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jchristopher/3135783eb3521bebbc5e to your computer and use it in GitHub Desktop.
Save jchristopher/3135783eb3521bebbc5e to your computer and use it in GitHub Desktop.
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', 20 );
@matthiashonert
Copy link

@mister-cairns It works when you set a priority number like this:

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', 20 );

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