I like your plugin very much!
This thread is closed: http://superstorefinder.net/support/forums/topic/load-plugin-assets-js-and-css-files-only-when-needed/
The code is working except of the inline code.
The plugin loads in every page much inline css (style options from backend) and js (translations) script. Can you please provide a button or function with the next update to only load all scripts of Super Storefinder on specific pages?
So I can remove the code from my functions.php and what’s more important to only load the inline css and js on the page where I use super store finder.
WOULD BE GREAT!
Thank you for your suggestion, we have moved this post into Features Wishlist forums so our devs team can analyze and have a closer look whether to include this in future updates.
Our devs feedback as below.
Suggest to open ssf-wp-functions.php and go to line 397
and replace this code below:
if ($show_on_all_pages || $on_ssf_wp_page || $show_on_archive_404_pages || $show_on_front_page || $on_ssf_wp_post || $show_on_custom_post_types || function_exists('show_ssf_wp_scripts') || $show_on_page_templates)
With this code:
if ($on_ssf_wp_page || $show_on_archive_404_pages)
will you add this in the next update? Because the changes are gone, when a new plugin update is launched.
The topic ‘Regarding: Load plugin assets (js and css files) only when needed’ is closed to new replies.