OG Easy Eye¶
OG Easy Eye adds dark mode to your website and to wp-admin. It works on any theme. If it ever runs into errors, it switches itself off so your site stays up.
Who it is for: site owners who want a dependable dark mode for visitors, and for themselves in the dashboard, without risking a broken page.
Price: free, with no licence key. Sign in on og-nexus.com, check out the OG Easy Eye product at £0, and download it from My Account › Plugin Downloads.
Building on it? See the developer's guide.
What it does¶
- Smart invert that works on any theme, or your own Custom colours.
- No flash of light mode. A tiny script in the page head applies the saved choice before the page is drawn.
- Follows the visitor's device setting, or a default you choose.
- Visitors switch it with a floating button, an admin-bar button, a shortcode, a menu item, or the shortcut Alt+Shift+D.
- Leave parts of a page alone by CSS selector, or skip whole pages by their address.
- Safe mode: after three faults in an hour it switches itself off and offers Turn it back on.
- Stays out of the way in the Elementor editor and preview, the Customizer, feeds, embeds and REST requests.
- Print pages and Windows high-contrast (forced colours) mode are never inverted.
Install and update¶
- Download OG Easy Eye from My Account › Plugin Downloads on og-nexus.com.
- Install and activate it. The steps are in Install and activate.
- Open OG Easy Eye in the admin menu. There is no licence key to enter.
The plugin makes no remote calls. To update it, download the latest version from My Account › Plugin Downloads and upload it over the old one. The Automatic updates column on the Plugins screen says the same.
Settings¶
Open OG Easy Eye in the admin menu. Settings save themselves as you change them. A small Saved note shows at the bottom right.
Dark mode¶
Website
| Setting | What it does | Default |
|---|---|---|
| Enable dark mode on the website | Turns dark mode on for the public site. | On |
| Default for visitors | Follow device (auto), Dark or Light. Used until a visitor picks their own. | Follow device (auto) |
Dashboard (wp-admin)
| Setting | What it does | Default |
|---|---|---|
| Enable dark mode in the dashboard | Turns dark mode on in wp-admin. | On |
| Default | Follow device (auto), Dark or Light. | Light |
Site's own look
| Setting | What it does | Default |
|---|---|---|
| Your theme is | Light (toggle offers dark mode) or Dark (toggle offers light mode). | Light |
Pick Dark if your theme is already dark. The defaults then mean how the page looks: Dark leaves the site as it is, Light flips it to light. On a dark theme the plugin always uses smart invert, because custom colours only apply to a light site.
Style¶
| Setting | What it does | Default |
|---|---|---|
| How dark mode is made | Smart invert (works on every theme) or Custom colours (below). | Smart invert |
| Brightness % | Smart invert brightness, 50 to 150. | 100 |
| Contrast % | Smart invert contrast, 50 to 150. | 92 |
| Sepia % | Adds a warm tint, 0 to 100. | 0 |
| Background | Custom colours background, as a hex colour. | #121212 |
| Text | Custom colours text. | #e6e6e6 |
| Links | Custom colours links. | #8ab4f8 |
Smart invert never inverts images, videos, iframes, embeds or elements with a background image. They keep their real colours. The admin bar and the wp-admin menu keep their own colours too.
Toggle¶
Floating button
| Setting | What it does | Default |
|---|---|---|
| Show the floating button | A round button that visitors click to switch modes. | On |
| Position | Bottom right, Bottom left, Top right or Top left. | Bottom left |
The button sits bottom left by default so it does not cover chat widgets.
Add the toggle to menus
| Setting | What it does | Default |
|---|---|---|
| Menu list | Tick each WordPress menu that should get a toggle item. Each menu shows where it is used. | None |
| Label | Text next to the icon, up to 40 characters. Leave it empty for the icon only. | Dark mode |
This works with theme menus and Elementor Nav Menu widgets that use a WordPress menu. Block-theme Navigation blocks are not covered. Use the shortcode there.
Exceptions¶
| Setting | What it does |
|---|---|
| Do not change these elements | One CSS selector per line. These elements keep their normal colours. |
| Show these images light | One CSS selector per line, for dark logos or icons on a transparent background that vanish in dark mode. The default is .ogaie-icon (the OG AI Core chat icon). |
| Skip these pages | One address fragment per line, for example /checkout/. Any page whose address contains it is left alone. |
| Extra CSS | Your own CSS for dark mode. Start each rule with html.oge-dark, for example html.oge-dark .your-class { ... }. |
Each list keeps up to 50 lines. Selectors may only use normal CSS selector characters.
Health¶
Shows Faults in the last hour and Faults before safe mode (3). It also reminds you of the emergency switch.
More from OG Nexus¶
Links to other OG Nexus plugins and guides.
Common tasks¶
Add a dark mode button inside a page¶
- Edit the page or post.
- Add a Shortcode block.
- Type
[og_easy_eye_toggle]. - Update the page. A Toggle dark mode button appears there.
Put the toggle in your main menu¶
- Open OG Easy Eye › Toggle.
- Under Add the toggle to menus, tick your main menu.
- Type a Label, or clear it for the icon only.
- Untick Show the floating button if you only want the menu item.
Keep your logo out of dark mode¶
- Find your logo's CSS class or ID, for example with your browser's inspector.
- Open OG Easy Eye › Exceptions.
- Add it to Do not change these elements, for example
.site-logo.
Leave the checkout light¶
- Open OG Easy Eye › Exceptions.
- Add
/checkout/to Skip these pages.
Safe mode¶
OG Easy Eye counts fatal errors that come from its own files only. Errors from other plugins are never counted. After three in one hour it switches itself off.
While safe mode is on, the plugin does nothing except show an admin notice: OG Easy Eye is switched off. The notice shows the last error. Click Turn it back on to clear the faults and start again.
Emergency switch
If you cannot reach wp-admin, add this line to wp-config.php:
The plugin stays switched off while the line is there. Remove it to turn dark mode back on.
FAQ and troubleshooting¶
Visitors still see the old look after I change settings. Saving the settings purges common page caches for you (LiteSpeed Cache, WP Rocket, WP Super Cache and Autoptimize). If you use a CDN or another cache, purge it by hand.
Dark mode flashes light for a moment.
An optimiser may be deferring or combining the early script. OG Easy Eye marks its own script and styles so the common optimisers leave them alone. If you use a different optimiser, exclude og-easy-eye/assets/oge.js and the inline oge-early script.
My theme is already dark and the toggle makes it dark again. Set Dark mode › Site's own look › Your theme is to Dark.
An icon disappears in dark mode. Add its selector to Exceptions › Show these images light.
Where is the visitor's choice stored? In the visitor's own browser (local storage). The website and wp-admin keep separate choices. Nothing is sent to your server.
The admin-bar button is missing. It shows only for signed-in users, and only where dark mode runs. When OG AI Core is active, the button sits inside its admin-bar menu.
Uninstall¶
Deleting the plugin removes its three options: the settings, the fault list and the safe-mode flag. Visitors' choices stay in their own browsers but no longer do anything.