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

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

安装

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.

评价

2021年2月18日
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条评价

贡献者及开发者

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

贡献者

将“Page Specific Scripts”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志