How to Exclude Elements from Dark Mode in Elementor?

Key Takeaways

  • The Plus Addons for Elementor Dark Mode widget allows users to exclude specific elements from dark mode on their website.
  • Users can add a class name in the CSS Classes field to specify which elements to exclude from dark mode.
  • Enabling The Plus Ignore Class Default toggle excludes all The Plus Addons widgets and the default Elementor Image widget from dark mode at once.
Table Of Content

Implementing dark mode in your website can enhance the user experience and create a sleek, modern look. However, there may be certain elements such as images in your website design that you do not want to be affected by dark mode especially while using the mix blend mode.

With the Dark Mode widget from The Plus Addons for Elementor, you can easily exclude elements from the dark mode on your Elementor website.

To check the complete feature overview documentation of The Plus Addons for Elementor Dark Mode widget, click here.

Requirement  – This widget is a part of The Plus Addons for Elementor, make sure its installed & activated to enjoy all its powers.

To do this, add the Dark Mode widget to the template and follow the steps –

Note: To create the template, you can use the free Nexter Builder or you can use Elementor Pro if you are already using it. 

1. Select the widget or container you want to exclude from dark mode.

2. Then go to the Advanced tab and add a class name in the CSS Classes field.

Tpae dark mode section css classes how to exclude elements from dark mode in elementor? From the plus addons for elementor

For instance, we’ve added a class named “hero”.

3. Then select the Dark Mode widget and select the appropriate dark mode type from the Type dropdown, under the Layout tab.

Note: In most cases, you have to exclude elements like images while using the Mix Blend type as images might not look good.

4. After doing the necessary settings, enable the Ignore Dark Mode toggle from the Extra Option tab.

Tpae dark mode ignore dark mode css classes 1 how to exclude elements from dark mode in elementor? From the plus addons for elementor

5. In the Ignore Dark Mode Classes field, you have to add the class name with a dot (.) in front. You can add multiple classes separated by a comma.

In our case, we’ll add the hero class like this .hero. 

By enabling The Plus Ignore Class Default toggle, you can easily exclude all The Plus Addons widgets and the default Elementor Image widget from dark mode at once.

Now, the specified class will be ignored in the dark mode.

About the Author

Photo of Aditya Sharma CMO of The Plus Addons for Elementor
CMO · The Plus Addons for Elementor · 10 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordPressElementorn8nAIClaudeAutomationServer
Get Instant Answers to all your questions about The Plus Addons for Elementor, trained on 1000+ Docs and Videos

Related Frequently Asked Questions

What should I do if the Ignore Dark Mode toggle isn't working?

If the Ignore Dark Mode toggle isn't functioning as expected, ensure that you've correctly added the class name in the Ignore Dark Mode Classes field with a dot (.) in front. For instance, if your class is 'hero', it should be entered as '.hero'. This step is crucial as it tells the Dark Mode widget which elements to exclude from dark mode effects.

What is the best practice for excluding multiple elements from dark mode?

To exclude multiple elements from dark mode, you can add multiple class names in the Ignore Dark Mode Classes field, separated by commas. This allows you to efficiently manage several elements at once, ensuring they all remain unaffected by dark mode settings.

What happens if I forget to add a class name for exclusion?

If you forget to add a class name for exclusion, the specified elements will still be affected by dark mode. This can lead to unintended visual changes on your site, especially for images or specific sections that you intended to keep unchanged. Always double-check your class entries to avoid these issues.

Does the Dark Mode widget work with other page builders?

The Dark Mode widget from The Plus Addons for Elementor is designed specifically for Elementor and does not work with other page builders like Gutenberg, Beaver Builder, or Divi. This means you need to ensure you are using Elementor to take advantage of this feature.

How do I create a template for excluding elements from dark mode?

To create a template for excluding elements from dark mode, you can use either the free Nexter Builder or Elementor Pro. Once your template is set up, you can add the Dark Mode widget and follow the steps to exclude specific elements by adding class names in the settings.

Last reviewed: April 9, 2026