Title: CM Header and Footer  &#8211; Add custom scripts and styles to your header and footer with ease
Author: CreativeMindsSolutions
Published: <strong>September 7, 2015</strong>
Last modified: January 29, 2026

---

Search plugins

![](https://ps.w.org/cm-header-footer-script-loader/assets/banner-772x250.png?rev
=3227678)

![](https://ps.w.org/cm-header-footer-script-loader/assets/icon-256x256.png?rev=
3227678)

# CM Header and Footer – Add custom scripts and styles to your header and footer with ease

 By [CreativeMindsSolutions](https://profiles.wordpress.org/creativemindssolutions/)

[Download](https://downloads.wordpress.org/plugin/cm-header-footer-script-loader.zip)

 * [Details](https://wordpress.org/plugins/cm-header-footer-script-loader/#description)
 * [Reviews](https://wordpress.org/plugins/cm-header-footer-script-loader/#reviews)
 *  [Installation](https://wordpress.org/plugins/cm-header-footer-script-loader/#installation)
 * [Development](https://wordpress.org/plugins/cm-header-footer-script-loader/#developers)

 [Support](https://wordpress.org/support/plugin/cm-header-footer-script-loader/)

## Description

[Premium Plugin Page](https://www.cminds.com/wordpress-plugins-library/wordpress-header-and-footer-script-loader-plugin/)
| [Videos](https://www.videolessonsplugin.com/video-lesson/lesson/header-footer-script-loader-plugin/)
| [User Guide](https://creativeminds.helpscoutdocs.com/category/452-header-and-footer-script-loader)

**Easily manage and control header and footer scripts and styles on your WordPress
site using a simple and user-friendly plugin.**

⭐ _We’re excited to introduce the updated 2025 version of the CM Header and Footer
plugin! This release brings a fresh, modern design to the script creation and editing
interface, making it even more intuitive and user-friendly. Install now and enjoy
the improved experience!_

With the Header and Footer Script Loader plugin, you can easily manage and control
additional scripts and styles on your WordPress site.

This plugin allows you to pre-load all scripts and styles in the plugin settings,
as well as inject custom JavaScript and code to suit your needs.

You have the option to choose whether a script should be automatically or manually
uploaded in all posts.

### Insert Headers and Footers Premium Edition

The [Insert Headers and Footers Plugin Premium editions](https://www.cminds.com/wordpress-plugins-library/wordpress-header-and-footer-script-loader-plugin/)
includes even more powerful features, such as: each post has a header and footer
metabox that allows you to control the various scripts and styles, device selection
for each script and stlye and much more.

### Insert Headers and Footers Plugin Introduction Video (Pro Version)

### Insert Script Plugin Use Cases

 * **Control Site Scripts** – Easily add or replace various scripts and styles to
   your WordPress site.
 * **Selective Loading Per Post** – Target scripts and styles to specific posts 
   or groups of custom posts.
 * **Reduce Script Load** – Reduce the amount of scripts loaded throughout the site.
 * **Target Script to Specific Posts or URL Pattern** (premium plugin) – Target 
   scripts to load on a specific URL or URL pattern.
 * **Per Device Script Support** (premium plugin) – Load script on a Mobile or Desktop
   or both.

### Basic Plugin Features

 * Add unlimited number of JS scripts and CSS styles.
 * Load scripts in header or footer.
 * Load scripts on all posts and pages.
 * Load scripts on selected post types.

### Pro Version Features

[Pro Version Detailed Features List](https://www.cminds.com/wordpress-plugins-library/wordpress-header-and-footer-script-loader-plugin/)

 * Add unlimited number of JS, CSS, PHP and HTML scripts.
 * Load scripts in header, footer, after opening body tag, before or after content.
 * Support script loading on custom posts.
 * Target scripts to selected posts and pages.
 * Target scripts to posts of chosen categories.
 * Target scripts to posts of chosen tags.
 * Target scripts by URL or group of URLs.
 * Target by device type: desktop only, mobile only or both for each script you 
   set.
 * Control script loading on specific posts using a metabox.
 * Control when to launch scripts by adding timeframe.
 * Add titles and internal notes to scripts.

### Follow Us

[Blog](https://www.cminds.com/category/wordpress/) | [Twitter](http://twitter.com/cmplugins)
| [LinkedIn](https://www.linkedin.com/company/creativeminds) | [YouTube](https://www.youtube.com/user/cmindschannel)
| [Pinterest](http://www.pinterest.com/cmplugins/) | [Facebook](https://www.facebook.com/cmplugins/)

### Plugin usage instructions

 1. Click “Add New Script”.
 2. Fill the “Script Name” field and paste “Script Code”.
 3. Click “Expand Additional Settings”.
 4. Optionally, add a note with explanations for a script.
 5. Select “Script Type”, “Script Location” and “Where to Load”.
 6. Click “Save Script”.

### Suggested Plugins by CreativeMinds

List of all [WordPress Plugins](https://www.cminds.com) by CreativeMinds

 * [CM Tooltip Glossary](https://glossaryplugin.com/) – Easily creates a Glossary,
   Encyclopaedia or Dictionary of your website’s terms and shows them as a tooltip
   in posts and pages when hovering. With many more powerful features.
 * [CM Download Manager](https://www.downloadmanagerplugin.com/) – Allows users 
   to upload, manage, track and support documents or files in a download directory
   listing database for others to contribute, use and comment upon.
 * [CM Answers Plugin](https://www.answersplugin.com/) – A fully-featured WordPress
   Questions & Answers Plugin that allows you to build multiple discussion forum
   systems Just like StackOverflow, Yahoo Answers and Quora, Now with MicroPayments
   and Anonymous posting support.
 * [CM Restrict Content](http://restrictcontent.com/) – A full-featured, powerful
   membership solution and content restriction plugin for WordPress. Support access
   by role to content on your site.
 * [CM OnBoarding](https://onboardingplugin.com/) – Superb Guidance tool which improves
   the online experience and the user satisfaction.

## Screenshots

 * [[
 * Form for Adding New Script
 * [[
 * Example of Inserting JavaScript
 * [[
 * Example of Inserting CSS Code

## Installation

 1. Upload `cm-header-footer-script-loader` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## Reviews

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

### 󠀁[Excellent!](https://wordpress.org/support/topic/excellent-12838/)󠁿

 [Eefje321](https://profiles.wordpress.org/eefje321/) June 27, 2023

Just what I was looking for.

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

### 󠀁[Excelent](https://wordpress.org/support/topic/excelent-900/)󠁿

 [admintg](https://profiles.wordpress.org/admintg/) March 19, 2020

I´d installed CM Header & Footer Script Loader recently because I changed my wordpress
theme and needed a way to insert a <script> before </body>. First I tried to insert
this with a php function and I don´t know why the script started to block navigation
on my site in some browsers. So I found CM Header & Footer Script Loader and my 
problem was resolved. I also needed support for a php error and CreativeMinds Team
Support gave me a quicky and accurate response even I´m using a free version. 5 
stars.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/)

## Contributors & Developers

“CM Header and Footer – Add custom scripts and styles to your header and footer 
with ease” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ CreativeMindsSolutions ](https://profiles.wordpress.org/creativemindssolutions/)

[Translate “CM Header and Footer – Add custom scripts and styles to your header and footer with ease” into your language.](https://translate.wordpress.org/projects/wp-plugins/cm-header-footer-script-loader)

### Interested in development?

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

## Changelog

#### 1.3.0

Release Date: 18 Sep 2025
 * Added plugin URI for fix missing homepage issue which
reported by WordFence

#### 1.2.9

Release Date: 12 Jun 2025
 * Added restrictions for deactivating a plugin and send
reason should be admin user

#### 1.2.8

 * Improvements

#### 1.2.7

Release Date: 14 Apr 2025
 * Improvements

#### 1.2.6

Release Date: 10 Apr 2025
 * Improvements

#### 1.2.5

Release Date: 25 Mar 2025
 * Implement permission and nonce check

#### 1.2.4

Release Date: 14 Jan 2025
 * Implement new user interface

#### 1.2.3

Release Date: 07 Jan 2025
 * Fixed vulnerability issue

#### 1.2.2

Release Date: 19 Nov 2024
 * Fixed security (medium) issue

#### 1.2.1

Release Date: 9 Oct 2024
 * Fixed security issues

#### 1.2.0

Release Date: 18 May 2024
 * Fixed security issues

#### 1.1.9

Release Date: 22 December 2023
 * Update package info

#### 1.1.8

Release Date: 21st Mar 2023
 * Update package info

#### 1.1.7

Release Date: 9th Nov 2022
 * Replace Internal support links

[View Release Notes in Plugin Site](https://www.cminds.com/wordpress-plugins-library/wordpress-header-and-footer-script-loader-plugin/#changelog)

## Meta

 *  Version **1.3.0**
 *  Last updated **2 months ago**
 *  Active installations **1,000+**
 *  WordPress version ** 5.4.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 5.2.4 or higher **
 * Tags
 * [custom css](https://wordpress.org/plugins/tags/custom-css/)[footer](https://wordpress.org/plugins/tags/footer/)
   [header](https://wordpress.org/plugins/tags/header/)[insert HTML](https://wordpress.org/plugins/tags/insert-html/)
   [insert javascript](https://wordpress.org/plugins/tags/insert-javascript/)
 *  [Advanced View](https://wordpress.org/plugins/cm-header-footer-script-loader/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cm-header-footer-script-loader/reviews/)

## Contributors

 *   [ CreativeMindsSolutions ](https://profiles.wordpress.org/creativemindssolutions/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cm-header-footer-script-loader/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.cminds.com/)