Title: Add Custom Codes &#8211; Insert Header, Footer, Custom PHP Snippets, CSS, Javascript
Author: SaifuMak
Published: <strong>March 11, 2017</strong>
Last modified: March 17, 2026

---

Search plugins

![](https://ps.w.org/add-custom-codes/assets/banner-772x250.jpg?rev=3283753)

![](https://ps.w.org/add-custom-codes/assets/icon.svg?rev=3283753)

# Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript

 By [SaifuMak](https://profiles.wordpress.org/saifumak/)

[Download](https://downloads.wordpress.org/plugin/add-custom-codes.5.0.zip)

 * [Details](https://srd.wordpress.org/plugins/add-custom-codes/#description)
 * [Reviews](https://srd.wordpress.org/plugins/add-custom-codes/#reviews)
 *  [Installation](https://srd.wordpress.org/plugins/add-custom-codes/#installation)
 * [Development](https://srd.wordpress.org/plugins/add-custom-codes/#developers)

 [Support](https://wordpress.org/support/plugin/add-custom-codes/)

## Description

Add custom codes to your wordpress website. You can add custom PHP Functions, HTML,
custom CSS, Javascript, Google Analytics, Search Console verification tags or other
code snippets to your site.

**Features**

 * 100% free wordpress plugin, no paid upgrades needed!
 * Add PHP Snippets, Custom CSS, Javascript, Google Analytics, Facebook Scripts,
   Meta Verification Codes, Search console verification and other codes to your 
   wordpress website easily.
 * Generate Shortcodes for HTML Snippets and use it anywhere on the site!
 * Syntax highlighter enabled with Light and Dark Mode Editors
 * Classify snippets using tags
 * Add Notes to Snippets
 * Activate/Inactivate snippets with a single click
 * Auto-deactivate feature for PHP snippets that causes errors.
 * Add Custome Codes globally or on individual posts, pages, products and even on
   custom post types.
 * Option to select where to put snippets: before _</head>_ or before _</body>_ 
   etc.
 * Import/Export Snippets to use on other sites.

## Screenshots

 * [[
 * Global Custom CSS, Header Codes, Footer Codes
 * [[
 * PHP functions
 * [[
 * HTML Snippets with auto-generated Shortcode
 * [[
 * Javascript snippets
 * [[
 * CSS Snippets
 * [[
 * Dark Mode Editor
 * [[
 * Snippets listing page
 * [[
 * Snippet auto-deactivation feature
 * [[
 * Header and Footer codes for Pages, Posts, Taxonomies etc.

## Installation

 1. Install the plugin through `Plugins -> Add New` or Upload the plugin files to the`/
    wp-content/plugins/add-custom-codes` directory
 2. Activate ‘Add Custom Codes’ plugin through the ‘Plugins’ page in WordPress
 3. Go to ‘Dashboard -> Add Custom Codes’ to start using

## FAQ

### Plugin is not working for me. Why?

Make sure that your theme has ‘wp_head()’ call in header.php file and ‘wp_footer()’
call in footer.php file. Also make sure that you have added the right codes in plugin
settings. Also Make sure to clear cache after updating codes in plugin settings.

### Is this plugin safe from hackers?

The plugin is tested well and is safe to use on your website.

### Does the plugin take too long to load?

This is a light-weight plugin which do not affect website performance. But if you
feel so, please check if you are loading scripts on header section. It is always
better to load most scripts in footer section of a website so that the page content
can load easily.

### Do you provide plugin support?

Yes, I am happy to provide support for free of cost.

### Plugin layout looks broken after update. How do I fix?

Please clear your wordpress cache if you are using a caching plugin or service. 
Also try clearing browser cache.

## Reviews

![](https://secure.gravatar.com/avatar/c336b608c8931c4e6dc1e28cc2640cb9e6b6cd8365a7c68c10251555b1fa9928?
s=60&d=retro&r=g)

### 󠀁[Very good](https://wordpress.org/support/topic/very-good-7718/)󠁿

 [vmadien](https://profiles.wordpress.org/vmadien/) January 7, 2026

Works perfectly. The syntax highlighter is sometimes incorrect, but it doesn’t affect
functionality. Thanks to the developers.

![](https://secure.gravatar.com/avatar/a978e99a148b7f81912eed8bf74ba1825f8f876eb0d2263549da2c7a886ebb88?
s=60&d=retro&r=g)

### 󠀁[Easy to use](https://wordpress.org/support/topic/easy-to-use-4972/)󠁿

 [Ehsan Fotoohabadi](https://profiles.wordpress.org/ehsanfotoo/) April 8, 2024

Very good and easy to use

![](https://secure.gravatar.com/avatar/b493e323a2efc592290d28bf249096f6518d40d5892ad1c8edb00c645639d70b?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-14827/)󠁿

 [anilnarayanan](https://profiles.wordpress.org/anilnarayanan/) September 1, 2022

This is the plugin I’m waiting for a long time while,and I’m very happy with this
plugin

![](https://secure.gravatar.com/avatar/6195bb27806ce7b88a91588228ea133a0fa00c228572071027632bfd6596f4d2?
s=60&d=retro&r=g)

### 󠀁[Perfect!!](https://wordpress.org/support/topic/perfect-but-it-has-a-bug/)󠁿

 [sergiohentz](https://profiles.wordpress.org/sergiohentz/) June 8, 2022 2 replies

NEW COMMENT: YESSSSSSSSS! Thank you a lot!! 😀 Old comment already fixed! OLD COMMENT:
The plugin has a bug. When active, wp-admin’s “select all” function no longer works
on pages, posts, images, etc

![](https://secure.gravatar.com/avatar/4beef41bd40d47d1a2c01bbeb6dcb31d3f4e5a071bc5372c7e695e78c3e349e3?
s=60&d=retro&r=g)

### 󠀁[Does what it sounds like](https://wordpress.org/support/topic/does-what-it-sounds-like/)󠁿

 [donygarvasis](https://profiles.wordpress.org/donygarvasis/) January 31, 2022

If you are looking for a simple solution to add code snippets, this plugin could
be one of your best choices. It doesn’t require any configuration.

![](https://secure.gravatar.com/avatar/7df2d34a6f0264270298bbf2a4e7c1357627d051bb3d9dcad46cbba3af2daf85?
s=60&d=retro&r=g)

### 󠀁[Works fast](https://wordpress.org/support/topic/works-fast-2/)󠁿

 [SaifuMak](https://profiles.wordpress.org/saifumak/) March 17, 2017

Plugin works faster. Contact support if any problem happens.

 [ Read all 6 reviews ](https://wordpress.org/support/plugin/add-custom-codes/reviews/)

## Contributors & Developers

“Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript”
is open source software. The following people have contributed to this plugin.

Contributors

 *   [ SaifuMak ](https://profiles.wordpress.org/saifumak/)

[Translate “Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript” into your language.](https://translate.wordpress.org/projects/wp-plugins/add-custom-codes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/add-custom-codes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/add-custom-codes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/add-custom-codes/)
by [RSS](https://plugins.trac.wordpress.org/log/add-custom-codes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial Release

#### 2.0

 * Tested to work on latest WordPress version

#### 3.0

 * Tested to work on latest WordPress version
 * Replaced text editor.

#### 4.0

 * Tested to work on latest WordPress version
 * Bug fixes and improvements.
 * Added support for individual posts, pages, woocommerce products and even custom
   post types.
 * Option to put CSS in header or footer of website.

#### 4.1

 * Tweaks and improvements for the Version 4.0 released earlier.

#### 4.2

 * Fixed a reported bug: users were not able to select all pages or posts on WordPress
   admin screen.

#### 4.3

 * Bugfixes and improvements
 * Tested to work with WordPress 6.0

#### 4.4

 * Bugfixes and improvements

#### 4.5

 * Tested to work with latest WordPress

#### 4.6

 * Tested to work with latest WordPress

#### 4.7

 * Bugfixes and improvements
 * Tested to work with latest WordPress
 * Option to Add custom codes to taxonomy pages

#### 4.71

 * Fixed a bug with css inputs

#### 4.8

 * Major update with a fantastic feature: Snippets
 * Add PHP Functions, HTML, CSS, Javascript as snippets
 * Tags and Notes for Snippets
 * Light Mode or Dark Mode editor
 * Import/Export Snippets

#### 5.0

 * Major update with security and vulnerability issues fixed
 * Added guide text to snippets for beginners to easily understand the plugin.

## Meta

 *  Version **5.0**
 *  Last updated **3 weeks ago**
 *  Active installations **1,000+**
 *  WordPress version ** 6.6.2 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/add-custom-codes/)
 * Tags
 * [custom codes](https://srd.wordpress.org/plugins/tags/custom-codes/)[custom css](https://srd.wordpress.org/plugins/tags/custom-css/)
 *  [Advanced View](https://srd.wordpress.org/plugins/add-custom-codes/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/add-custom-codes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/add-custom-codes/reviews/)

## Contributors

 *   [ SaifuMak ](https://profiles.wordpress.org/saifumak/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/add-custom-codes/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://donate.stripe.com/9AQdRz5xJ87c9i0bIS)