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.

FAQ

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.

評価

2020年2月13日
This is still my favourite plugin for adding scripts to the header or footer.
2020年1月28日
If you have ever in the past used WPBeginner's equivalent plugin, this plugin may cause problems. In my case, when I used this plugin to place some custom JS code in my header, this plugin also somehow found and an old, long-unused snippet of JS code that I had inserted into my header years ago using the WPB plugin, and also placed that in my header. I spent two hours very confusedly trying to debug the very unexpected behavior of my new code before I noticed the old code and figured out how it was getting into my header (it wasn't visible in the text box where one enters code to be inserted into the code, only my new code was there).
2020年1月3日
I use this plugin for two different websites and it works great! The setup is incredibly simple but you'll need to install HFCM plugin first, or something similar, to be able to paste the Facebook Messenger html into your header. Trust your instincts, it's very simple. Thank you for your contribution to WordPress! 🙂
2019年11月25日
one of the best plugin’s
2019年11月25日
Needed this to insert the structured data into the various pages.
39件のレビューをすべて表示

貢献者と開発者

Header and Footer Scripts はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Header and Footer Scripts” は3ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Header and Footer Scripts” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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