Plugin
Custom CSS Editor
Custom CSS that survives theme switches — unlike the Customizer's. A real editor, revision history, one-click restore. Zero bloat.
/**
Plugin header
- Plugin name:
- Custom CSS Editor – EPAS
- Version:
- 1.0.0
- Requires at least:
- 6.4
- Requires PHP:
- 7.4
- Languages:
- English, Lietuvių
- License:
- GPL-2.0-or-later
- Download size:
- 28 KB
*/
What it does
- A real editor: WordPress's own bundled CodeMirror with syntax highlighting, line numbers and linting — nothing loaded from anywhere else.
- Theme-proof. Unlike the Customizer's "Additional CSS", which belongs to one theme, your rules survive switching and updating themes.
- Printed as one inline
<style>block late in<head>, so your rules win without!importantbattles. - Saving requires core's own
edit_csscapability; output is tag-stripped exactly like core does it, so CSS can never escape its style element. - A history of every save. The last twenty versions are kept with the date, who saved them and how big they were; one click restores any of them — and the CSS that restore replaced is kept too, so the restore itself can be undone.
- One option read on the front end. No extra file, no extra request.
Questions
What if I paste over something I needed?
Open History under the editor and restore it. Every save keeps the version it replaced — the last twenty — and restoring keeps the one you just replaced, so you can undo the undo. A Clear history button empties the lot without touching your current CSS.
How is this different from "Additional CSS"?
Core stores that per theme — switch themes and it is gone. This plugin's CSS is global, and you get a full-page editor instead of a narrow sidebar.
Can I use both?
Yes. Both print a style block; this plugin prints after core's, so where the same selector appears twice, yours wins. Keeping each rule in one place is still the better habit.
Can I add JavaScript here?
No — this box is CSS only and tags are stripped on output. Scripts belong in the Header, Footer & Body Scripts plugin.
How to get it
This plugin is finished and being prepared for the WordPress.org plugin directory. Until it is published there, email us and we will send you the current zip.