Adding a dark pattern to your website is important to provide a better user experience and make your website more accessible.Elementor is one of the most popular page builder tools for WordPress, and it's easy to add a dark pattern in just a few simple steps.
![图片[1]-如何用Elementor在WordPress网站中添加暗色模式-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024051714512069.png)
Why add a dark color mode?
Before exploring how to implement dark mode in Elementor, let's understand its benefits for websites. There are two main benefits: enhanced user experience and improved accessibility.
- Enhanced User Experience: Dark mode provides a more comfortable browsing experience, especially in dimly lit environments. It minimizes eye fatigue, improves readability and makes the site more attractive to visitors.
- Improved accessibility: The dark mode also improves accessibility for people with visual impairments or sensitivity to bright light. This allows them to navigate and engage with your site's content more comfortably without any inconvenience.
Step 1: Install and activate the free version of Elementor's Unlimited Elements
The free version of Unlimited Elements for Elementor must be installed and activated.
Step 2: Install the Dark Mode Widget in Unlimited Elements
![图片[2]-如何用Elementor在WordPress网站中添加暗色模式-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024051802243618.png)
Find "dark mode " widget, move your cursor over it and you will see an "Install" button. Click that button to set up the Widget.
![图片[3]-如何用Elementor在WordPress网站中添加暗色模式-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024051802433566.jpg)
Step 3: Add the Dark Mode widget to the Elementor page.
Drag and drop the Dark Mode widget onto the page.
![图片[4]-如何用Elementor在WordPress网站中添加暗色模式-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024051802270555.png)
Customize the dark mode settings to your liking.
![图片[5]-如何用Elementor在WordPress网站中添加暗色模式-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024051802281336.png)
1. Animation speed
Adjusts the speed at which transitions occur when switching between light and dark modes.
2、Button horizontal position
Determines the horizontal position of the dark mode toggle button in the widget.
3、Button vertical position
Specifies the vertical position of the dark mode toggle button in the widget.
4、Button vertical offset
Fine tune the vertical alignment of the dark mode toggle button relative to the default position.
5. Button horizontal offset
Adjusts the horizontal alignment of the dark mode toggle button relative to its default position.
6. Button Icons
Customize the icon displayed on the dark mode toggle button.
7. Save in Cookie
Choose whether to save the user's dark mode preferences in a cookie for future access.
8, does not affect the image
Choose to exclude images from dark mode conversion for better visibility or aesthetics.
9. Automatic matching of operating system themes
Automatically synchronize the widget's dark mode with the operating system's theme (if available).
10, dark mode mixing colors
Define a blend color to be mixed with a darker pattern background to improve readability or design consistency.
11, dark mode background color
Sets the background color of the dark mode display within the widget.
![图片[6]-如何用Elementor在WordPress网站中添加暗色模式-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024051714100750.png)
summarize
Adding a dark mode to your WordPress site with Elementor not only allows users to browse as they prefer, but also makes the site unique and shows the importance of variety and user experience. The goal is to create a flexible environment where users are able to choose how they browse based on their habits, which makes them more likely to engage and feel satisfied. If you're having trouble setting up a dark mode, you can find out more about it in our "Question and Answer Community"Ask for help or findContact Usof customer service help.
Link to this article:https://www.361sale.com/en/9950/The article is copyrighted and must be reproduced with attribution.

















![表情[wozuimei]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![表情[baoquan]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments