CustomEasy
CustomEasy
Description
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.
Installation
- Upload the
customEasydirectory to the/wp-content/plugins/directory, or install the plugin through the Plugins screen. - Activate the plugin through the Plugins menu.
- Go to Appearance -> CustomEasy to add global code.
- To add code to a single page, use the CustomEasy metabox shown in the editor of any public post type.
Faq
Head code is inserted through wp_head; footer code is inserted through wp_footer.
Go to Appearance -> CustomEasy.
Open the post in the editor and use the CustomEasy metabox. It is available for every public post type.
Check that your theme calls wp_head() and wp_footer(), and that no caching or optimization plugin is serving an older version of the page.
The code you enter is printed without any filtering, so only trusted users should be allowed to edit it.
Reviews
Changelog
2.0.0
- new: complete code overhaul and optimization
- new: Replaced bundled ACE with the WordPress CodeMirror editor.
- new: Improved nonce validation, capability checks, output escaping in admin fields, and post-save handling.
1.0.2
- new: Minor changes and WordPress 6.7 compatibility declaration.
1.0.1
- fixed: slashes management in code editors.
1.0
Initial release.
