From f122c75965522bd01170aced568982ffeb7b5eea Mon Sep 17 00:00:00 2001 From: QWp6t Date: Tue, 3 Mar 2015 13:39:52 -0800 Subject: [PATCH] Add js-to-footer module --- README.md | 8 ++++++++ modules/js-to-footer.php | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 modules/js-to-footer.php diff --git a/README.md b/README.md index 659e4f94..a6beeabb 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,14 @@ Enable Soil's nice search (`/search/query/`) with: add_theme_support('soil-nice-search'); ``` +### JS to Footer + +Move all scripts to `wp_footer` action hook with: + +```php +add_theme_support('soil-js-to-footer'); +``` + ### Disable trackbacks/pingbacks Remove trackback/pingback functionality with: diff --git a/modules/js-to-footer.php b/modules/js-to-footer.php new file mode 100644 index 00000000..5a4f8f73 --- /dev/null +++ b/modules/js-to-footer.php @@ -0,0 +1,16 @@ +