Title: [Plugin: CDN Sync Tool] Solution for &#039;doesnot work exclude css/js list&#039;
Last modified: August 20, 2016

---

# [Plugin: CDN Sync Tool] Solution for 'doesnot work exclude css/js list'

 *  [alexvs](https://wordpress.org/support/users/alexvs/)
 * (@alexvs)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-solution-for-doesnot-work-exclude-cssjs-list/)
 * Hi, guys
    Thank you for great plugins! It’s very usefull
 * As several other people i have found that exclude css/js list does not work properly.
 * I have found two solution for it:
    1. Write in exclude list full path to file,
   like: [http://your-domain.com/wp-content/themes/jcarusel/jcarusel.css](http://your-domain.com/wp-content/themes/jcarusel/jcarusel.css)
   but it’s not comfortably for me
 * 2. Edit function ‘doCombine’ in file ‘cdn-sync-tool\lib\Cst\JsCss.php’:
    Change
 *     ```
       if (in_array($file, explode("\n",$filesConfig["exclude_js"])) ||
       in_array($file, explode("\n",$filesConfig["exclude_css"]))) {
       continue;
       }
       ```
   
 * to
 *     ```
       if (in_array(basename($match[1]), explode("\n",$filesConfig["exclude_js"])) ||
       in_array(basename($match[1]), explode("\n",$filesConfig["exclude_css"]))) {
       continue;
       }
       ```
   
 * then use only file name in exclude list (ex.: jcarusel.css)
 * maybe you will whant to patch your plugin … and optimize code
 * Good luck!
 * [http://wordpress.org/extend/plugins/cdn-sync-tool/](http://wordpress.org/extend/plugins/cdn-sync-tool/)

The topic ‘[Plugin: CDN Sync Tool] Solution for 'doesnot work exclude css/js list'’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cdn-sync-tool.svg)
 * [CDN Sync Tool](https://wordpress.org/plugins/cdn-sync-tool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cdn-sync-tool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cdn-sync-tool/)
 * [Active Topics](https://wordpress.org/support/plugin/cdn-sync-tool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cdn-sync-tool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cdn-sync-tool/reviews/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [alexvs](https://wordpress.org/support/users/alexvs/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-solution-for-doesnot-work-exclude-cssjs-list/)
 * Status: not resolved