Directory / plugin
CustomEasy
v2.0.0 · by LCweb
Add custom CSS, JavaScript or any HTML code to your site's head or footer, globally or per post. Lightweight, with a built-in code editor.
About this plugin
CustomEasy is a tiny, lightweight plugin to insert your own code in the <head> or before the closing </body> of your website, without editing theme files.
Use it for analytics and tracking snippets, custom CSS, JavaScript and jQuery, verification tags, pixels and any other code you need on your pages.
Features
- Add code to the website head and footer
- Global code, applied to every page of the site
- Per-page code: a metabox is available in every public post type (posts, pages and custom post types)
- Syntax highlighting with the CodeMirror editor bundled with WordPress
- Works with both the block editor and the classic editor
- No bloat: no front-end scripts or styles of its own
How code is inserted
Head code is printed through the wp_head hook, footer code through wp_footer. Your theme must call both hooks, as every properly built theme does.
Security note
Custom code is output as-is on the public website. Only grant access to trusted users with the required capabilities.