Title: NinjaTeam Header Footer Custom Code
Author: Ninja Team
Published: <strong>2018 年 3 月 29 日</strong>
Last modified: 2026 年 5 月 18 日

---

搜索插件

![](https://ps.w.org/header-footer-code/assets/banner-772x250.png?rev=1961899)

![](https://ps.w.org/header-footer-code/assets/icon-128x128.png?rev=1961899)

# NinjaTeam Header Footer Custom Code

 作者：[Ninja Team](https://profiles.wordpress.org/ninjateam/)

[下载](https://downloads.wordpress.org/plugin/header-footer-code.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/header-footer-code/#description)
 * [评价](https://cn.wordpress.org/plugins/header-footer-code/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/header-footer-code/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/header-footer-code/#developers)

 [支持](https://wordpress.org/support/plugin/header-footer-code/)

## 描述

Easily add CSS, JavaScript, and custom code snippets to your website’s `<head>` 
or before the `</body>` tag with this powerful plugin. Whether you need to integrate**
Google Analytics**, **Facebook Pixel**, **custom CSS**, or other scripts, this plugin
makes it simple—no theme file editing required. Plus, your code remains safe even
when you update your theme!

This is a must-have plugin for any WordPress website.

If you’re wondering how to add code to the header in WordPress or searching for 
a **WordPress plugin to insert code into the header or footer**, you’ve come to 
the right place. This plugin gets the job done quickly!

#### FEATURES

 * Easy to insert code to header and footer
 * Add Google Analytics code to any theme
 * Add custom CSS to any theme
 * Add Facebook Pixel to any theme
 * Friendly
 * Support code editor
 * And more…

For WordPress Full Site Editing (FSE) users:

 * FSE reduces the need to access and edit core theme files, which can make it harder
   for advanced users who prefer working directly with PHP or CSS in template files.
 * Some modifications may require custom block creation, which involves more advanced
   coding.
 * Since [FSE themes](https://wpbrandy.com/full-site-editing-in-wordpress/) are 
   heavily block-based, any manual modifications to theme files might be overridden
   during updates, so adding code snippets needs to be done carefully.
 * When adding PHP or backend functionality, rely on plugins like Header Footer 
   Custom Code to avoid directly editing theme files.

#### INSTALLATION

Manual installation is easy and takes fewer than one minute.

 1. Download the plugin from wordpress.org, unpack it and upload the **[NinjaTeam Insert
    Code Header Footer]** folder to your **wp-content/plugins/** directory.
 2. Activate the plugin through the ‘Plugins‘ menu in WordPress.
 3. Go to your main **WordPress menu > Header Footer Code** to add your custom code.

You’re done. Enjoy.

## 安装

Manual installation is easy and takes fewer than one minute.

 1. Download the plugin from wordpress.org, unpack it and upload the **[NinjaTeam Insert
    Code Header Footer]** folder to your **wp-content/plugins/** directory.
 2. Activate the plugin through the ‘Plugins‘ menu in WordPress.
 3. Go to your main **WordPress menu > Header Footer Code** to add your custom code.

You’re done. Enjoy.

## 评价

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

### 󠀁[Great idea. Hot-to might be out of date](https://wordpress.org/support/topic/great-idea-hot-to-might-be-out-of-date/)󠁿

 [jleahy](https://profiles.wordpress.org/jleahy/) 2019 年 11 月 13 日

Been looking for something like this. However, there is no “Go to your main WordPress
menu > Header Footer Code” In the current version of WordPress. Perhaps this is 
unique to a theme you have? Its not in Appearance > Menus Not in Tools > Not in 
Settings>

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

### 󠀁[Nice UI and UX](https://wordpress.org/support/topic/nice-ui-and-ux/)󠁿

 [viettam06](https://profiles.wordpress.org/viettam06/) 2019 年 1 月 7 日

Many plugins like this but this one have nice UI and easy to use. Good job man!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/header-footer-code/reviews/)

## 贡献者及开发者

「NinjaTeam Header Footer Custom Code」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ninja Team ](https://profiles.wordpress.org/ninjateam/)

[帮助将「NinjaTeam Header Footer Custom Code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/header-footer-code)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/header-footer-code/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/header-footer-code/)，或通过[RSS](https://plugins.trac.wordpress.org/log/header-footer-code/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/header-footer-code/)。

## 更新日志

#### Aug 13, 2024 – Version 1.2

 * Fixed: Sanitise and escape the settings

#### 1.0

 * Version 1.0 Initial Release

## 额外信息

 *  版本 **1.2**
 *  最后更新：**3 周前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/header-footer-code/)
 * 标签
 * [custom code](https://cn.wordpress.org/plugins/tags/custom-code/)[Facebook Pixel](https://cn.wordpress.org/plugins/tags/facebook-pixel/)
   [footer](https://cn.wordpress.org/plugins/tags/footer/)[google analytics](https://cn.wordpress.org/plugins/tags/google-analytics/)
   [header](https://cn.wordpress.org/plugins/tags/header/)
 *  [高级视图](https://cn.wordpress.org/plugins/header-footer-code/advanced/)

## 评级

 3.5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/header-footer-code/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/header-footer-code/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/header-footer-code/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/header-footer-code/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/header-footer-code/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/header-footer-code/reviews/)

## 贡献者

 *   [ Ninja Team ](https://profiles.wordpress.org/ninjateam/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/header-footer-code/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://codecanyon.net/item/media-folders-manager-for-wordpress/21715379)