Loading CSS assets on EVERY page!?
-
You have this code in your plugin that loads the
common.css
file on EVERY page … this should not be necessary, especially when you’re loading CSS that defines a very standard CSS selector like.left
// We need this on all pages wp_enqueue_style( 'ots-common', asset( 'css/common.css' ), null, VERSION );
This should NOT be necessary on every page, and if it for some reason actually is … you should NOT be using standard CSS select classes that can cause problems with other plugins when loading your custom CSS on every page.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Loading CSS assets on EVERY page!?’ is closed to new replies.