使い方は非常に簡単で、まず、headタグ内で jQuery と Garlic.js を読み込みます( jQueryは、テーマで既に読み込まれている場合は不要です)。 くれぐれも、jQuery を先に読み込んでください。 ちなみに私がよく使うWordPressのテーマ「Cocoon」ですと、子テーマの tmp-userフォルダ内の head-insert.php にスクリプト部分のみ追記するだけです(jQueryの読み込みは不要です)。 <!doctype html> <html lang="ja"> <head> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js?ver=1.12.4' id='jquery-core-js'></script> <script src='https:
![jQuery – フォームの入力内容をブラウザを閉じても保持するGarlic.js](https://cdn-ak-scissors.b.st-hatena.com/image/square/350443c3a3f1d184aed6c22bdc7f40375d79649f/height=288;version=1;width=512/https%3A%2F%2Fblog.ekaki-j.com%2Fwp%2Fwp-content%2Fuploads%2F2022%2F04%2Fgarlic-eyecatch.png)