One plugin to rule them all — globally or individually add custom CSS and JS on WordPress pages.
CodeSpreader allows you to quickly inject custom CSS and JavaScript across your entire WordPress site or on a per-page/post basis directly from the editor. Perfect for site-wide style tweaks, tracking scripts, or functionality enhancements tailored to individual pages.
- Add global CSS across all pages
- Add global JavaScript across all pages
- Add custom CSS and JS for individual pages or posts via the WordPress editor
- Simple settings page for managing your global code
- Clean and lightweight
- Upload the
codespreaderfolder to the/wp-content/plugins/directory. - Activate the plugin through the "Plugins" menu in WordPress.
- Navigate to
Settings -> CodeSpreaderto add your global custom CSS and JavaScript. - To add per-page code, go to the post or page editor and scroll to the CodeSpreader metabox.
Can I add both CSS and JavaScript?
Yes! You can inject both types of code globally and per-page.
Will my changes be lost on theme updates?
No, your custom code is safely stored via the plugin settings and post meta.
- Initial release with global and per-page CSS/JS injection support.
This plugin is open-source software licensed under the GPLv2 or later.
- [Plugin Website (Coming Soon)](PLUGIN SITE HERE)
- GitHub Repository