內容簡介
Smart CSS Auto Loader 外掛(原名為 CSS AutoLoader)允許您載入額外的 CSS 檔案,而不需要更改主題
使用方法
要載入額外的 CSS 樣式表,只需把它們放入名為 cssautoload (區分大小寫!)的目錄中。這個目錄可以放置在三個不同的位置,以下是載入順序:
獨立於主題: 在 wp-content 目錄中
依賴於主題: 在主題目錄中
依賴於子佈景主題 (如果使用子佈景主題): 在子佈景主題目錄中
只有副檔名為 .css 的檔案才會被添加,所有其他檔案都會被忽略。以底線 (_) 開頭的檔案也會被忽略。
不同媒體的 CSS
CSS 允許為不同的目標設備製作不同的樣式。直接放在 cssautoload 目錄中的檔案會使用媒體類型 "all",適用於所有設備。要使用不同的媒體類型,只需創建一個具有目標媒體類型名稱的子目錄(區分大小寫!)。根據官方的 CSS 標準,支援以下 CSS 媒體類型:
all 適用於所有設備-您不需要創建 all 目錄,您也可以直接將檔案放入 cssautoload 根目錄中
braille 適用於盲人觸覺回饋設備
embossed 適用於分頁盲文打印機
handheld 適用於手持設備
print 適用於列印或屏幕列印預覽
projection 適用於投影演示
screen 適用於螢幕
speech 適用於語音合成器
tty 適用於使用固定間距字符網格的媒體
tv 適用於電視設備
cssautoload 目錄中的其他子目錄都會被忽略。媒體子目錄中的子目錄也不受支援。
支援
支援論壇
您是否喜歡這個插件?
我花了我寶貴的空閒時間來開發和維護我的免費 WordPress 插件。您不需要捐款。沒有錢,沒有啤酒,沒有咖啡。如果您喜歡這個插件,請幫我一個忙,給它一個好評。謝謝。
插件隱私資訊
此插件不會設置 cookie
此插件不會收集或儲存任何資料
此插件不會向外部伺服器發送任何資料
Peters’ Plugins隱私政策資訊頁
ClassicPress
此插件與ClassicPress 兼容。
Peter 的其他插件
JavaScript AutoLoader - 載入 JavaScript 檔案而不需要更改主題資料夾中的檔案或安裝多個外掛,以添加所有所需的功能
hashtagger – 在您的文章中使用#hashtags 和 @usernames
404page – 定義任何 WordPress 頁面為 404 錯誤頁面
更多插件
外掛標籤
開發者團隊
原文外掛簡介
The Smart CSS Auto Loader Plugin allows you to load additional CSS files without the need to change the theme
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 stylesheets just put them into a directory named cssautoload (case-sensitive!). This directory can be placed in three different locations that are loaded in the following order:
Theme independent : in the wp-content directory
Theme dependent : in the Theme’s directory
Child Theme dependent (if using a Child Theme) : in the Child Theme’s directory
Only files with extension .css are added, all other files are ignored. Also files beginning with an underscore (_) are ignored.
CSS for different media
CSS allows to have different styles for different target devices. Files placed directly in the cssautoload directory are added with the media type ‘all’, suitable for all devices. To use a different media type just create a subdirectory with the name of the target media type (case-sensitive!). Te following CSS media types are supported according to the official CSS standard:
all for all devices – you don’t need to create the all directory, you also can put the files directly into the cssautoload root directory
braille for braille tactile feedback devices
embossed for paged braille printers
handheld for handheld devices
print for printouts or print preview on screen
projection for projected presentations
screen for screens
speech for speech synthesizers
tty for media using a fixed-pitch character grid
tv for television-type devices
Other subdirectories in cssautoload directory are ignored. Also subdirectories in the media subdirectories are not supported.
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
