[WordPress] 外掛分享: Smart JavaScript Auto Loader

前言介紹

  • 這款 WordPress 外掛「Smart JavaScript Auto Loader」是 2013-09-12 上架。
  • 目前有 400 個安裝啟用數。
  • 上一次更新是 2024-04-17,距離現在已有 679 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
  • 有 8 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

petersplugins |

外掛標籤

footer | header | jquery | javascript | wp_enqueue_script |

內容簡介

智慧 JavaScript 自動加載程式外掛(前身為 JavaScript AutoLoader)允許您載入其他 JavaScript 檔案,而無需更改佈景主題目錄中的檔案

使用方法

只需將其他 JavaScript 檔案放入名為 jsautoload 的目錄中即可進行載入。此目錄可放置在三個不同的位置,按以下順序加載:

子佈景主題相關 (若使用子佈景主題):放置於子佈景主題的目錄中
佈景主題相關:放置於佈景主題的目錄中
主題無關:放置於 wp-content 目錄中

僅會加入副檔名為 .js 的檔案,所有其他檔案都會被忽略。也可以使用子目錄,並且它們也會被掃描。若要忽略整個目錄(包括所有子目錄),請以底線(_)開頭命名此目錄。檔案會按字母順序加入的。目錄永遠會在檔案之後加入。

要在 HTML 檔案的末尾載入一個或多個 JavaScript 檔案,只需將它們放入名為 footer 的目錄中。若要將檔案添加至您的佈景主題頁尾中,則需要在您的 footer.php 中呼叫 wp_footer()。

支援

支援論壇

您喜歡這個外掛嗎?

我花了一些寶貴的空閒時間來開發和維護我的免費 WordPress 外掛,您不必捐款。沒有金錢,沒有啤酒,也沒有咖啡。如果您喜歡這個外掛,請幫我一個忙,給它一個好評價。謝謝。

外掛隱私資訊

此外掛不會設置 cookies
此外掛不會收集或儲存任何資料
此外掛不會向外部伺服器傳送任何資料

Peters 的外掛隱私資訊頁面

ClassicPress

此外掛與 ClassicPress 相容。

Peter 的更多外掛

CSS 自動加載程式 - 不需編寫 CSS 檔案即可載入它
hashtagger - 在 WordPress 中使用標籤
404 頁 - 定義任何 WordPress 頁面作為 404 錯誤頁面
查看全部

原文外掛簡介

The Smart JavaScript Auto Loader Plugin allows you to load additional JavaScript files without the need to change files in the theme directory
Retired Plugin
Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you.
There will be no more updates and I won’t answer any support questions. Thanks for your understanding.
Feel free to fork this plugin.
Usage
To load additional JavaScript files just put them into a directory named jsautoload. This directory can be placed in three different locations that are loaded in the following order:

Child Theme dependent (if using a Child Theme) : in the Child Theme’s directory
Theme dependent : in the Theme’s directory
Theme independent : in the wp-content directory

Only files with extension .js are added, all other files are ignored. Subdirectories can be used and will also be scanned. To ignore a complete directory (including all subdirectories) name the directory beginning with an underscore (_). The files are added in alphabetical order. Directories always are added after files.
To load one ore more JavaScript files at the end of your HTML file just place them into a directory named footer. To add the files to the footer of your theme it is required to call wp_footer() in your footer.php.
Plugin Privacy Information

This plugin does not set cookies
This plugin does not collect or store any data
This plugin does not send any data to external servers

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Smart JavaScript Auto Loader」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


5.0.3 | trunk |

延伸相關外掛(你可能也想知道)

  • WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager 》插入標頭和頁腳 + 完整的 WordPress 代碼片段外掛, WPCode (前稱为 WPBeginner 的 "插入標頭和頁腳")是使用率超过 100 万个网站的 WordPress 代码片段外掛中...。
  • Header Footer Code Manager 》Header Footer Code Manager by 99 Robots 是一個簡易的介面,可將片段添加到頁面的標頭或頁腳或內容上方或下方。, 優點, , 無需擔心因添加代碼而不小心使網...。
  • Insert Headers And Footers 》WP Headers and Footers 外掛程式可以協助您在 WordPress 網站的頁首和頁尾中插入程式碼,例如 Google Analytics 追蹤碼、Facebook 像素碼、Google Optimize ...。
  • Sticky Header Effects for Elementor 》Sticky Header Effects for Elementor 是一個插件,為 Elementor Pro 2.0 中引入的「sticky」標題特性添加了實用選項。當訪客開始向下滾動頁面時,它為用戶提...。
  • Head, Footer and Post Injections 》關於 WordPress SEO 和 Facebook Open Graph:我對 Yoast 的邀請讓我刪除我的外掛非常不滿,但實際上並不需要。, 點擊此處了解更多。, 頁首和頁尾代碼, 為什...。
  • Header and Footer Scripts 》如果您正在運行 WordPress 網站,早晚都需要將某種代碼插入到您的網站上。最有可能的是網頁分析代碼,例如 Google Analytics,或者是社交媒體腳本、某些 CSS ...。
  • Slim SEO – A Fast & Automated SEO Plugin For WordPress 》ne-click, Robots.txt Editor: edit your robots.txt file easily without any technical knowledge, Backlinks: monitor backlinks and broken links, Autom...。
  • Nimble Page Builder 》Nimble Page Builder 是什麼?, Nimble Page Builder 是一個針對 WordPress 的快速靈活的頁面建構外掛。Nimble Builder 使用 WordPress 原生、強大的介面以即...。
  • Unique Headers 》特點, Unique Headers Plugin 從文章/頁面編輯畫面中新增一個自訂標頭圖像框。你可以使用這個框來上傳該文章的獨特標頭圖像,或使用你的 WordPress 媒體庫中...。
  • SOGO Add Script to Individual Pages Header Footer 》已經在 Gutenberg 上進行測試, 創建一個簡單的方式,為個別頁面、文章或自訂文章類型的標題和頁腳添加 JavaScript 代碼,, 例如: 在感謝頁面上添加轉換代碼, ...。
  • Oceanwp sticky header 》簡單易用的固定標題安裝, 啟用外掛後,固定標題就會立即開始運作。, 如何停用固定標題?, 您可以從設置頁面中的管理員選單下方的「外掛」中停用外掛。, 是否...。
  • Easy WP Meta Description 》這個外掛讓使用者為每篇文章、頁面、首頁或自訂文章類型的文章編寫獨立的描述,這些描述會作為 meta 描述加入到 HTML 的 head 中。, 每篇文章或頁面的獨立描...。
  • WP Display Header 》這個 WordPress 外掛可以讓你針對每個文章、頁面、自訂文章類型,以及封存頁面,選擇個別的標頭圖片,可以從預設的標頭照片和自訂標頭照片中做選擇。, , 外掛...。
  • Pearl – Header Builder 》e Plugins menu in your WordPress dashboard. The Pearl Header Builder plugin allows you to easily create custom headers for your website using the i...。
  • Simple Header Footer HTML 》這個外掛可以讓您的使用者插入自訂的 CSS,或是加入自訂的標頭或 JavaScript 到網站中,而不必編輯主題檔案。與類似的標頭/底部外掛不同的是,這個外掛的設計...。

文章
Filter
Apply Filters
Mastodon