Toggle Filters | WordPress.org

[ad_1]

Hello @schulz,

Could you share the website page URL where you have to apply “dmt-filter-0” classs to the images?

I can provide you a simple CSS rule, so you don’t have to apply this class to each images.

Thread Starter
schulz

(@schulz)

The page I need help with: https://shoptbay.ca/shop/wired807/

You can remove those “dmt-filter-0” classes from images and use this CSS globally (Customize > Additional CSS):

.darkmode--activated .dmt-filter-1 img {
    filter: invert(0) !important;
}

Thread Starter
schulz

(@schulz)

That fixed it, I thank you for responding so quickly and providing a solution.

Is this problem due to the theme I am using, or will this be patched in a later version of your plugin?

So, class=”dmt-filter-1″ means don’t change colors when mode changes and class=”dmt-filter-0″ means set colors opposite of current mode.

With the fix in place, it is now clear what each filter does, more details about these filters in your documentation would greatly help others use your plugin more effectively.

Thanks again for the plugin and the great support you provided.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer