這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Header and Footer Scripts

描述

If you are running a WordPress site then sooner or later you need to insert some kind of code to your website. It is most likley a web analytics code like Google Analytics or may be social media script or some CSS stylesheet or may be Custom fonts. This plugin will do all the magic. Even if you want to insert those codes in a custom post type.

All you have to do is adding appropriate html code.

Don’t forget to wrap your code with proper tags.

<script type="text/javascript">
YOUR JS CODE HERE
</script>

Or for CSS:

<style type="text/css">
YOUR CSS CODE HERE
</style>

Why use this plugin:

  • To insert CSS and JavaScript codes to <head> or before </body>.
  • To insert code to <head> of any single page or post.
  • To insert code to Custom Post Type [New Feature].

The plugin should be compatible with WooCommerce.

What it does not offer

  • You can’t insert/execute PHP codes.

Almost all WordPress theme do support this “Header and Footer Scripts” plugin. If the codes are not appearing in your site [ask for support] or look at your theme file if they have standard wp_head and wp_footer hooks.

Important Links

For furhter information you are welcomed to follow these links:

安裝

There is nothing special about installation of this plugin. It is as simple as uploading the plugin files to your plugins directory.

Upload the plugin to /wp-content/plugins and activate. OR Search “Header and Footer Scripts” from WP Dashbard --> Plugins --> Add New then hit Install and then activate.

Once the plugin is activated you will see “Header and Footer Scripts” menu item under setting of WordPress dashboard. Also a meta box on Post and Page edit page.

常見問題

Q. How could I access support and troubleshoot problem?

A. I couldn’t handle wp.org forums on regular basis. You are suggested to visit Digital Liberation for more updated plugin documentation and troubleshoot your problem.

Q: Is there any paid version of the plugin available?

A. Nope, There is none. If you need more feature send us feedback or feature request.

評價

2023年9月29日
If I could give more than 5 stars, I would. This plugin is a must-have for anyone running a WordPress site. It’s made my life so much easier.
2022年7月7日
I like that the plugin is up to the point and does what it is supposed to do. However, I believe it vulnerable to hijacks and injections. Since I’ve started using the plugin, some ads appear in new tab once I click on a link to the website. So I uninstalled the plugin and now will look for another solution.
2022年2月20日
I have used this plugin on several sites, works great, simple interface & I like it a lot. It seems the plugin has not been updated in over 2 years. Possibly it did not need an update. However, are the Authors of the plugin still active in case there is a problem at some point ?
閱讀全部56個評價

貢獻者及開發者

“Header and Footer Scripts” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Header and Footer Scripts 外掛目前已有 12 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Header and Footer Scripts 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.2.0

  • New feature: Now set priority to sitewide script.
  • Fix: Monoscript font for text area.
  • Improved readme.txt.
  • Reverted to PHP v5.6 as many people can’t move to latest one.

2.1.1

  • Fixed a bug causing singular post type scripts to appear in archives.
  • Compatibility checked upto WordPress 5.2.2
  • Now require PHP v7.0 at least.

2.1.0

  • Support to Custom Post Type (CPT).
  • Improved ReadMe

2.0.1

  • Uniform Coding style.
  • Improved Translatable strings.
  • Fixed Links
  • Code Cleanup

2.0.0

  • Visual Improvements.
  • better directory structure.

1.3.4

  • Fixed variable undefined notice

1.3.3

  • Started using PHP5 style construct

1.3.2

  • Fixed https issue

1.1.0

  • Made for official WordPress Repo.
  • Added Single post Header script metabox
  • Minor Bug Fixes

1.0.0

  • Initial Public Release