Title: Exclusions function not working
Last modified: July 4, 2024

---

# Exclusions function not working

 *  Resolved [Dominik Kozmáli](https://wordpress.org/support/users/dominokozmali/)
 * (@dominokozmali)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/)
 * Hi,
 * I have been communicating for 2 weeks and the authors of the WP Dark Mode plugin,**
   which becomes broken as soon as I activate your EWWW plugin** (which I want to
   continue using). Support from the WP Dark Mode plugin found out (I gave them 
   login information directly to my live page to look at it) that the **“Easy IO
   for all resources” function from the EWWW plugin is responsible for the incorrect
   functionality of WP Dark Mode.**
 * Specifically, when they turned off the option:
 * **Include All Resources**
   Use Easy IO for all resources in wp-includes/ and wp-
   content/, including JavaScript, CSS, fonts, etc.
 * Then the WP Dark Mode plugin started working properly.
 * **But I want to have the Easy IO function turned on for all resources.**
 * That’s why we wanted to use the **Exclusions **function you have in your EWWW
   plugin and proceed with the WP Dark Modre plugin support, according to your guide
   how to exclude things from Easy IO [https://docs.ewww.io/article/68-exactdn-exclude](https://docs.ewww.io/article/68-exactdn-exclude).
 * And **we also tried several variants of excluding** the WP Dark Mode plugin from
   Easy IO:
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/ewww-exclude.
   png?ssl=1)
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/ewww-exclude2.
   png?ssl=1)
 * However, neither option worked (of course we also cleared the cache).
 * Therefore, we became aware that the given **Exlusions **function in the EWWW 
   plugin **does not work properly.**
 * **Could you please look into it and fix the problem?**
 * **Because I plan to subscribe to your EWWW plugin for a year**, but at the same
   time I want to continue using the WP Dark Mode plugin.
 * Thank you very much for your early reply.
 * Sincerely
   Dominik Kozmáli
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclusions-function-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [Dominik Kozmáli](https://wordpress.org/support/users/dominokozmali/)
 * (@dominokozmali)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17875845)
 * Hi, has this request reached the support team please?
 *  Plugin Support [adamewww](https://wordpress.org/support/users/adamewww/)
 * (@adamewww)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17876419)
 * Hi [@dominokozmali](https://wordpress.org/support/users/dominokozmali/)
 * It was a holiday weekend here, sorry for the delay. However, it is also generally
   much quicker to get a response by contacting us directly (as the sticky mentions:
   [https://wordpress.org/support/topic/read-first-for-a-timely-response/](https://wordpress.org/support/topic/read-first-for-a-timely-response/)).
   There’s only two of us but we try to be as quick as we can.
 * For your question, I tested the plugin out and noticed that the exclusions work,
   it was just also changing the style.css of the theme (or using that to adjust
   the background). I excluded the following two items and it seemed to work:
 * /wp-content/plugins/wp-dark-mode/
   style
 * That having been said, it should work with a CDN so you don’t have to exclude
   anything. I think I would bring this up with the plugin developers as using a
   CDN is pretty common especially serving JS/CSS. If they want to reach out to 
   us, we’d be happy to help.
 *  Thread Starter [Dominik Kozmáli](https://wordpress.org/support/users/dominokozmali/)
 * (@dominokozmali)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17876781)
 * Hi [@adamewww](https://wordpress.org/support/users/adamewww/)
 * i understand it’s totally fine sorry i didn’t even realize it was a holiday. 
   And I understand that with such a small number of your team, immediate communication
   is more difficult.
 * I tried your solution but unfortunately it doesn’t work and the page (even after
   clearing the cache) still displays poorly when dark mode is turned on with “Use
   Easy IO for all resources” turned on and the plugin path you sent is excluded:/
   wp-content/plugins/wp -dark-mode/style
 * I am also sending you screenshots of how the given error manifests itself:
 * Here’s what the page looks like when it’s in the default light mode:
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-08-221641.png?ssl=1)
 * In the lower right corner, it switches to dark mode, but if the “Use Easy IO 
   for all resources” function is enabled and the WP-Dark-Mode plugin is excluded(
   according to the description you sent):
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-08-221657.png?ssl=1)
 * So then, when switching to dark mode, the page is displayed like this:
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-08-221648.png?ssl=1)
 * But if I turn off the “Use Easy IO for all resources” function:
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-08-221701-1.png?ssl=1)
 * So the dark mode is displayed correctly on the page, as it should be:
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-08-221653.png?ssl=1)
 * The developers of the WP-DarkMode plugin are very approachable, so I will be 
   happy to connect you so that we don’t have to maintain both threads, I am sending
   you the thread that I solved with them directly on their helpdesk (where the 
   whole case is documented from the beginning) and it’s not finished yet:
 * [https://wppool.freshdesk.com/support/tickets/24221](https://wppool.freshdesk.com/support/tickets/24221)
 * Just please send me an email (or some other form of non-public communication 
   like the one here) with which I can send you the login details for that thread
   so that you can write to them on my behalf.
 * Alternatively, I’ll send you (via a secure channel) the login details directly
   to my live site so you can take a look from the inside.
 * Thank you very much for your effort and time.
 * Best regards and have a nice day or evening
 * Dominik Kozmáli
 *  Plugin Support [adamewww](https://wordpress.org/support/users/adamewww/)
 * (@adamewww)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17878495)
 * The exclusions that I sent were two separate exclusions on two separate lines.
   The first one is
 * /wp-content/plugins/wp-dark-mode/
 * The second one on a separate line is:
 * style
 * Try that and see how it works.
 *  Thread Starter [Dominik Kozmáli](https://wordpress.org/support/users/dominokozmali/)
 * (@dominokozmali)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879018)
 * Hi [@adamewww](https://wordpress.org/support/users/adamewww/)
 * I changed it as you wrote and put it on two lines:
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-09-181508.png?ssl=1)
 * but unfortunately it didn’t change and the page still displays incorrectly when
   I turn on Dark Mode (I also cleared the cache):
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-09-181928.png?ssl=1)
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879060)
 * [@adamewww](https://wordpress.org/support/users/adamewww/) Please read this reply
   and confirm that you will not repeat this in a reply here. You asked for login
   and that can get you banned and your plugin removed from this site.
 * Honestly, don’t ignore this. Reply here once you read this.
 * While I know you have the best of intentions, it’s forum policy that you _not_
   ask users for admin or server access. Users on the forums aren’t your customers,
   they’re your open source collaborators, and requesting that kind of access can
   put you and them at high risk.
 * If they _are_ paying customers (such as people who bought a premium service/product
   from you) then by all means, direct them to your official customer support system.
   But in all other cases, you need to help them here on the forums.
 * Thankfully are other ways to get information you need:
    - Ask the user to install the [Health Check plugin](https://wordpress.org/support/plugin/health-check/)
      and get the data that way.
    - Ask for a link to the [http://pastebin.com/](http://pastebin.com/) or [https://gist.github.com](https://gist.github.com)
      log of the user’s web server error log.
    - Ask the user to create and post a link to their `phpinfo();` output.
    - Walk the user through [enabling WP_DEBUG and how to log that output to a file and how to share that file.](https://wordpress.org/support/article/debugging-in-wordpress/)
    - Walk the user through basic troubleshooting steps such and disabling all other
      plugins, clear their cache and cookies and try again (the Health Check plugin
      can do this without impacting any site vistors).
    - Ask the user for the step-by-step directions on how they can reproduce the
      problem.
 * You get the idea.
 * We know volunteer support is not easy, and this guideline can feel needlessly
   restrictive. It’s actually there to protect you as much as end users. Should 
   their site be hacked or have any issues after you accessed it, you could be held
   legally liable for damages. In addition, it’s difficult for end users to know
   the difference between helpful developers and people with malicious intentions.
   Because of that, we rely on plugin developers and long-standing volunteers (like
   you) to help us and uphold this particular guideline.
 * When you help users _here_ and in public, you also help the next person with 
   the same problem. They’ll be able to read the debugging and solution and educate
   themselves. That’s how we get the next generation of developers.
 *  Thread Starter [Dominik Kozmáli](https://wordpress.org/support/users/dominokozmali/)
 * (@dominokozmali)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879162)
 * Hi [@adamewww](https://wordpress.org/support/users/adamewww/)
 * **hooray that helped! 🙂 thank you very much for looking into it and figuring
   out where the error was :).**
 * I put this line in the exclusion:
 * **/wp-content/uploads/the7-css/**
 * And web site it already displays beautifully when switched to dark mode, as it
   should 🙂
 * ![](https://i0.wp.com/www.kozmali.sk/wp-content/uploads/2024/07/Snimka-obrazovky-
   2024-07-09-191651.png?ssl=1)
 * I just see that your last reply disappeared from this thread (the one where you
   advise me to exclude the line that helped: /wp-content/uploads/the7-css/ ), so
   I’ll copy it here again, maybe it was deleted by the moderator [@jdembowski](https://wordpress.org/support/users/jdembowski/)(
   probably because of some rules, I don’t know), anyway Mr. [@jdembowski](https://wordpress.org/support/users/jdembowski/)
   I declare that I was the first to offer to provide login information, so it’s
   ok and I know about it :).
 * Here is Mr. [@adamewww](https://wordpress.org/support/users/adamewww/)’s answer,
   which helped me solve my problem and is missing here (it was probably removed
   by the moderator) in the thread (but it came to my email):
 * adamewww wrote:
 * Hrm… none of the wp-dark-mode files are coming through the CDN.  One of your 
   style sheets is still coming through the CDN but I actually think that’s not 
   affecting it.  I see the WP-dark-mode affecting a few other files.  Can you try
   adding on another line:
 * /wp-content/uploads/the7-css/
 * If that doesn’t do it, can you send me a direct email here with a login and I
   can better see things and try them out: [https://ewww.io/contact-us/](https://ewww.io/contact-us/)(
   [https://ewww.io/contact-us/](https://ewww.io/contact-us/) )
 * Post Link: [https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879053](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879053)
   ———–
   You are receiving this email because you subscribed to a forum topic.
 * Log in and visit the topic to reply to the topic or unsubscribe from these emails.
   Note that replying to this email has no effect.
 *  Plugin Support [adamewww](https://wordpress.org/support/users/adamewww/)
 * (@adamewww)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879274)
 * Hi [@jdembowski](https://wordpress.org/support/users/jdembowski/),
 * I apologize, you are right. I was trying to provide a way for [@dominokozmali](https://wordpress.org/support/users/dominokozmali/)
   to contact us directly (as they requested). But, yes, I shouldn’t have mentioned
   a login.
 *  Thread Starter [Dominik Kozmáli](https://wordpress.org/support/users/dominokozmali/)
 * (@dominokozmali)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879363)
 * Hi [@adamewww](https://wordpress.org/support/users/adamewww/)
 * you are completely innocent in this, the another contact (to send you login data
   to the my site) was requested by me and you helped me even without it and successfully,
   for which I thank you very much and I appreciate your help :).
 * So I take full responsibility for what I wrote and **I apologize to [@jdembowski](https://wordpress.org/support/users/jdembowski/)
   if I wrote something that is not in the policy of the forum.** **The initiative
   came from my side**, so the developers from the EWWW plugin are completely innocent
   in this, they only tried to help me, as I asked them (to provide a secure form
   of communication so that I don’t write them login data to my site here in a public
   thread).
 * **Anyway, the problem is solved and we are all happy :).**
 * **Thanks again for the great help [@adamewww](https://wordpress.org/support/users/adamewww/)
   I really appreciate it,** especially since there are only two of you in the team
   and you are doing great! 🙂 Thank you so much 🙂
 * Sincerely
   Dominik Kozmáli

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Exclusions function not working’ is closed to new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

## Tags

 * [exclusion](https://wordpress.org/support/topic-tag/exclusion/)
 * [exclusions](https://wordpress.org/support/topic-tag/exclusions/)

 * 10 replies
 * 3 participants
 * Last reply from: [Dominik Kozmáli](https://wordpress.org/support/users/dominokozmali/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/exclusions-function-not-working/#post-17879363)
 * Status: resolved