This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Style (CSS) loading method: File not working

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Style (CSS) loading method: File not working Reply To: Style (CSS) loading method: File not working

#42083
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

You may need to clear the cache only – if the file method is chosen, then the stylesheets are definitely enqueued on all of the website pages. The issue is more likely a cache or a missing wp_head or wp_footer section. You should also check if the stylesheet files are generated in the wp-content/cache/asp/ folder. If that folder does not exist, then try creating it manually, then saving the search options again to refresh.

You can however forcefully enqueue the plugin styles via:

\WPDRMS\ASP\Asset\Css\Manager::_o()->enqueue( true );

..call, but this is actually executed anyways if the file method is used.

You can use this like:

add_action('wp_enqueue_scripts', function(){
     \WPDRMS\ASP\Asset\Css\Manager::_o()->enqueue( true );
});

But I strongly recommend checking the file wp-content/cache/asp/ folder first if it exists.