Title: Page Specific Scripts
Author: Afnan Abbasi
Published: <strong>2019 年 7 月 3 日</strong>
Last modified: 2020 年 9 月 30 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/page-specific-scripts.svg)

# Page Specific Scripts

 作者：[Afnan Abbasi](https://profiles.wordpress.org/affuxo/)

[下载](https://downloads.wordpress.org/plugin/page-specific-scripts.zip)

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

 [支持](https://wordpress.org/support/plugin/page-specific-scripts/)

## 描述

This plugin helps you add jQuery and Javascript code snippets only on specific pages
and posts.

It works with all types of custom post types as well. Each script added to a page
or post, will run only on that specific post.

Scripts can be added in a meta box when editing a page.

This plugin uses the wp_head() action hook, and adds the code to the header of the
page.

Most of the themes using this hook, so it works on most of the themes.

Tested & works with Gutenberg.

#### Docs & Support

You will find more information about the plugin at the plugin [website](https://justentrepreneurship.com/page-specific-scripts)

## 安装

#### From your WordPress dashboard

Go to Dashboard > Plugins > Add New
 Search for ‘Page Specific Scripts’ Click install
and then Activate the plugin

#### From WordPress.org

Download the package from wordpress.org Plugin Directory
 Unzip the files Upload
the unzipped files with FTP to the plugin directory in your wordpress installation
Go to Dashboard > Plugins to activate

## 常见问题

What themes have this plugin been tested on?

This plugin has been tested and created on a test environment of the Divi theme 
with Gutenberg enabled. It also works on the WordPress Default themes.

## 评价

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

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

 [immergente](https://profiles.wordpress.org/immergente/) 2021 年 2 月 18 日 1 回复

I was looking for a soultion for adding a JS conversion tag on a specific page withoot
using Google Tag Manager (I was in a hurrry…). This plugin did the job! Thanks

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/page-specific-scripts/reviews/)

## 贡献者及开发者

「Page Specific Scripts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Afnan Abbasi ](https://profiles.wordpress.org/affuxo/)

[帮助将「Page Specific Scripts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/page-specific-scripts)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [English (US)](https://wordpress.org/plugins/page-specific-scripts/)
 * 标签
 * [javascript](https://cn.wordpress.org/plugins/tags/javascript/)[jquery](https://cn.wordpress.org/plugins/tags/jquery/)
   [script](https://cn.wordpress.org/plugins/tags/script/)
 *  [高级视图](https://cn.wordpress.org/plugins/page-specific-scripts/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/page-specific-scripts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/page-specific-scripts/reviews/)

## 贡献者

 *   [ Afnan Abbasi ](https://profiles.wordpress.org/affuxo/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/page-specific-scripts/)

## 捐助

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

 [ 捐助此插件 ](http://N/A)