WordPress plugin that creates a CSS-file that can be edited through the administration user interface.
This lightweight plugin uses WordPress built-in code editor to allow you edit CSS. The CSS is saved to a file, which is globally enqueued to be shown at the frontend.
Download latest version to your computer, and upload it to WordPress.
You can also install it with GitHub Updater, which gives you the additional benefit of keeping the plugin up to date the usual way. Please see its wiki for more information.
Look for Kntnt Style Editor in the Appearance menu.
When the editor content is saved, it is saved as an option in the WordPress database and exported to the file. When the editor is loading its content, the content is loaded from the database and not the file. Thus, the CSS editor is not editing the file directly. Therefore, it is possible to delete the file; it will be re-created when saving the CSS next time.
Since WordPress 4.7, you can add custom CSS in the customizer. But that has two consequences:
- Additional CSS added through a theme's customizer is only available for that particular theme. In contrast, additional CSS added through this plugin is available independent of the theme.
- Additional CSS added through a theme's customizer is usually inlined into the HTML-file and not saved to a separate CSS-file. Thus, the added CSS is not subject to WordPress usual processing of CSS in files. Consequently, it will not be minified and combined by a cache plugin that can't extract inline CSS. That could hurt your site's performance. In contrast, additional CSS added through this plugin is stored as a file that WordPress will process as any other CSS file.
No. Since the CSS is stored in a static file, there is no extra database queries or anything else that takes time. The only time data is retrieved from or saved to the database is when you work in the editor.
This plugin is currently hosted on GitHub; one way would be to "watch" the repository.
If you prefer WordPress to nag you about an update and let you update from within its administrative interface (i.e. the usual way), you must download GitHub Updater to your computer and upload it to WordPress and activate it. Please see its wiki for more information.
If you have questions about the plugin and cannot find an answer here, start by looking at issues and pull requests. If you still cannot find the answer, please ask in the plugin's issue tracker at Github.
If you have found a potential bug, please report it on the plugin's issue tracker at Github.
Contributions to the code or documentation are much appreciated.
If you are unfamiliar with Git, please date it as a new issue on the plugin's issue tracker at Github.
If you are familiar with Git, please make a pull request.
- Delayed enqueuing of the CSS with priority 9999.
- Fixed regression bug (style not saved as file).
- Improved how the editor is shown.
- Minor updates to the README file.
- Added install.php to make sure the CSS isn't auto-loaded from the wp_option table.
- Added uninstall.php to delete this plugin option and created file.
- Minor refactoring of code.
- Improved documentation.
- The initial release.
- A fully functional plugin.