• Resolved schulz

    (@schulz)


    I had a very weird thing happen to one of my pages on my site; when I used the class=”dmt-filter-1″ on a div container that contained images, the colors of the image inverted, howerver, the background and text colors did not when I switched to dark mode! I had to use class=”dmt-filter-0″ on each image to prevent the image color invert from happening.

    Doesn’t class=”dmt-filter-0″ mean don’t change colors and class=”dmt-filter-1″ means set colors opposite of current mode? Your documentation was not clear and I am very confused by this.

    BTW: The theme I am using is Neve version: 3.5.8 by ThemeIsle.

    • This topic was modified 3 years, 1 month ago by schulz.
    • This topic was modified 3 years, 1 month ago by schulz.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ScriptsTown

    (@scriptstown)

    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/

    Plugin Author ScriptsTown

    (@scriptstown)

    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.

    Plugin Author ScriptsTown

    (@scriptstown)

    Our plugin works differently than other dark mode plugins. So, its easy to fix things and it is compatible with most of the themes.

    I have updated the documentation guide to make it more clear about this.

    Thanks!

    Plugin Author ScriptsTown

    (@scriptstown)

    I would appreciate if you could share your experience by leaving a review:

    Many thanks!

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

The topic ‘Toggle Filters’ is closed to new replies.