Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/sapthesh/rapid-css/archive/refs/heads/main.zipA lightweight WordPress plugin to securely add custom CSS to your site with a native syntax-highlighting editor.
🚀 Overview
Rapid Custom CSS allows site administrators to add custom CSS rules directly from the WordPress dashboard without modifying theme files. It provides a safer, faster alternative to editing style.css and ensures your custom styles remain intact even when you switch themes.
✨ Features
- Native Code Editor: Utilizes WordPress's built-in CodeMirror library (
wp_enqueue_code_editor) for syntax highlighting, bracket matching, and line numbers. - Highly Secure: Implements strict data sanitization (
wp_strip_all_tags) on both save and output (Late Escaping) to prevent XSS attacks. - Lightweight: The editor assets only load on the specific plugin settings page, ensuring zero performance impact on your WordPress admin dashboard.
- High Priority Output: Custom styles are injected into the
<head>of your website with a priority of 99, ensuring they override default theme styles.
🛠️ Installation
Manual Installation
- Download the latest release
.zipfile. - Go to your WordPress Dashboard -> Plugins -> Add New -> Upload Plugin.
- Upload the
.zipfile and click Install Now. - Click Activate.
Git Installation
- Navigate to your WordPress plugins directory:
cd wp-content/plugins/ - Clone this repository:
git clone https://github.com/yourusername/rapid-custom-css.git - Activate the plugin through the WordPress admin interface.
💻 Usage
- Navigate to Appearance -> Rapid CSS in your WordPress dashboard.
- Write your custom CSS in the editor.
- Click Save CSS.
- The styles will immediately be applied to the frontend of your website.
🛡️ Security Details
This plugin was built with strict WordPress security standards in mind:
- Requires
manage_optionscapability (Admin only). - Uses the WordPress Settings API, which automatically handles nonce verification to protect against CSRF attacks.
- CSS output is heavily sanitized to strip HTML and script tags, allowing only valid CSS to be rendered.
👨💻 Author
Sapthesh V
📄 License
This project is licensed under the GPLv2 (or later) License - see the LICENSE details.
Releases
1 release.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.