• Resolved adamstar0rx

    (@adamstar0rx)


    I’m using your plugin on three websites; it works great on two of them, but on the third, I’d like to change one of the button colors in dark mode to what it is originally. How do I do it?

Viewing 1 replies (of 1 total)
  • Plugin Author ScriptsTown

    (@scriptstown)

    Hi @adamstar0rx,

    1. To skip the button color changing when dark mode is toggled, you will have to apply the class dmt-filter-1 to that button.

    If the button is a block, then you can use the “Additional CSS class(es)” field in the “Block” tab.

    Or, if the button is coming from page builder plugins like Elementor, then you can also apply this class dmt-filter-1 in a similar way by editing that button with Elementor.

    2. If you want to change that button color to something else like red while in dark mode, then use this CSS code:

    .darkmode--activated .your-button-class {
    	color: #00fcff;
    }

    Here, .your-button-class is some existing class selector of the button, and to make it red, use an inverted hex color code of red (like #00fcff).

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Change button color in dark mode’ is closed to new replies.