Code Snippet
Managed snippets for head, body, footer, or shortcodes—HTML, CSS, JS, and PHP.
Code Snippets gives you a safer, more organized way to add custom code to WordPress without editing functions.php, theme files, or plugin files.
Create and manage HTML, CSS, JavaScript, and PHP snippets from one dashboard. Run code automatically across your site, insert it at specific WordPress or WooCommerce locations, use snippets as shortcodes, schedule temporary code, and control exactly where selected snippets should run.
Built-in recovery tools, PHP validation, error logging, Safe Mode, revisions, and private file storage options make it practical for developers, agencies, and website owners who regularly customize WordPress.
HTML and CSS snippets are available for free. Premium adds JavaScript, PHP, device targeting, Smart Conditional Logic, and Code Revisions.
HTML, CSS, JavaScript & PHP Snippets
Manage frontend styling, custom markup, JavaScript, tracking scripts, WordPress hooks, filters, shortcodes, and PHP functionality from one place.
Automatic Code Insertion
Run snippets automatically in the site header, body, footer, WordPress admin area, post content, archives, paragraphs, HTML elements, and WooCommerce locations.
Shortcode Support
Use any snippet manually with its generated shortcode or create your own custom shortcode name.
Smart Conditional Logic
Premium lets you run snippets based on URL, user role, login status, page type, or post type.
Device Targeting
Load Premium snippets only on desktop, tablet, mobile, or all devices.
Scheduling
Choose when a snippet should start or stop running using your WordPress site timezone.
WooCommerce Locations
Insert code around shop loops, products, Add to Cart areas, cart pages, and checkout without editing WooCommerce templates.
CSS Selector Insertion
Target existing HTML elements and insert content before, after, at the beginning, or at the end of matching elements.
Code Revisions
Premium keeps a history of snippet changes so previous versions can be compared and restored.
PHP Error Protection
PHP snippets can be syntax checked and runtime tested, with automatic deactivation when an active snippet triggers an applicable runtime error.
Safe Mode & Recovery
Temporarily disable snippets for your administrator session, disable them site-wide, or hard-disable execution through wp-config.php.
Error Logging
See which snippet caused an error, where it ran, and the related error message.
Optional File Loading
JavaScript and CSS can load as frontend files, while PHP and HTML can use private file storage outside the publicly accessible website when available.