Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Style (CSS) loading method: File not working
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 5 months ago.
- AuthorPosts
- April 3, 2023 at 9:14 am #42082
when choosing:
Style (CSS) loading method: FILE
Its not loading like a classic file as it did before update.I have not updated yet on live site, but on local site the issue arises as follows:
– If first page is one without search form.
– Navigating (PJAX) to next page with form, will not load form styles.If theres is a js action i can call on page change to load styles, that would work as well.
April 3, 2023 at 12:07 pm #42083Hi,
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
Best,wp-content/cache/asp/
folder first if it exists.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 3, 2023 at 12:42 pm #42084The cache folder was missing, thank you!
April 3, 2023 at 12:51 pm #42087You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.