Hi @mushlih
many thanks to you!
Here my answers to your questions.
1. A plugin can’t be disabled in a part of the page, but you can disable parts of a plugin. If for example a part of the plugin Dark Mode loads only in the header, you can disable that part. When I say part of a plugin I mean a hook added by that plugin or an asset. With the PRO version, you will be able to disable parts of plugins, but the free version hasn’t this feature. But the PRO version is still under development and not public.
2. Unfortunately you can’t. You can deactivate plugins by Archives, but then it is applied both on desktop and mobile. You have the mobile options, but the same doesn’t help you with your case.
When I say part of a plugin I mean a hook added by that plugin or an asset.
Hi
I don’t really know about it, but can I disable it with CSS?
These are the class the plugin uses when active: wp-dark-mode-active
And this is the header class: header
And here is the footer class: footer
But I don’t know what CSS code can be used to deactivate the plugin in the header and footer using CSS, can you help me please?
Thank you very much
Hi @mushlih
What you want to do is to annulate the effect that a plugin has on parts of the page. If you disable the entire plugin, of course, that plugin will have no impact any more on those parts of the page, but I assume you need that plugin on the same page for other reasons.
So Freesoul Deactivate Plugins can’t help you in this case.
You can’t disable anything with CSS, but you can override the CSS introduced by that plugin.
With CSS you can do what you are trying to do, but it’s not a matter of disabling something, but of overriding.
For this kind of topic, you should ask on the support forum of WP Dark Mode: https://ww.wp.xz.cn/support/plugin/wp-dark-mode/
I managed to solve the problem myself, thank you
Perfect! You are welcome @mushlih