Dequeue styles via code doesn’t work
-
In the
live-search-results.php
file there are these notes:* Some base styles are output in wp_footer that do nothing but position the * results container and apply a default transition, you can disable that by * adding the following to your theme's functions.php: * * add_filter( 'searchwp_live_search_base_styles', '__return_false' ); * * There is a separate stylesheet that is also enqueued that applies the default * results theme (the visual styles) but you can disable that too by adding * the following to your theme's functions.php: * * wp_dequeue_style( 'searchwp-live-search' );
However adding these two items in the theme’s
functions.php
file does not appear to have any impact on the styles that are loaded. Changing the backend CMS settings for Results -> Include Styling does appear to correctly limit those styles from being included. Is there a correct way to implement those functions in code?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dequeue styles via code doesn’t work’ is closed to new replies.