Including scripts and styles publicaly
-
Hi,
I am the author of NEX-Forms (moderated) and I need your help.
You are including styles and scripts publicly and it is interfering with my functionality.
Please take this as a fellow developer trying to help. All you need t do is to add an if statement before your inclusion of scripts and styles. This is what I do:
if(is_admin() && ( isset($_GET[‘page’]) && stristr($_GET[‘page’],’nex-forms’) ) ){
//include back-end styles and script
wp_enqueue_style(‘Nex-Forms-admin-holy-grail.min’, WP_PLUGIN_URL . ‘/Nex-Forms/css/holy-grail.css’);
//etc etc
}If you can please do this we can as developers respect each others work and know your own work is not vulnerable to 3rd party plugins.
Please let me know if you can accommodate
Thanks
Paul (basix)https://www.ads-software.com/plugins/kraken-image-optimizer/
- The topic ‘Including scripts and styles publicaly’ is closed to new replies.