[WordPress] 外掛分享: Less Theme Support

WordPress 外掛 Less Theme Support 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Less Theme Support」是 2014-04-19 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2014-04-20,距離現在已有 4032 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.4 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

kopepasah |

外掛標籤

less | theme | lessjs | lesscss |

內容簡介

在開發主題時使用 Less 可以增強程式碼並加快開發速度。然而,為每個主題設置 Less(更不用說每個主題要更新 Less)會讓任何節省下來的時間付出代價。

這個外掛解決了這個問題,為主題設置了 Less。

使用方法

在主題根目錄添加 style.less 檔案。

將以下內容添加到 after_setup_theme 掛鉤。

add_theme_support( 'less', array(
'enable' => true
) );

如需進一步瞭解進階用法、其他選項或加入開發,請訪問Github 存儲庫。

原文外掛簡介

Using Less when developing a theme can both enhance the code and speed development. However, setting up Less in a every theme (not to mention updating Less for each theme) can make any saved time saved.
This plugin solves that issue by setting up Less for the theme.
Usage

Add style.less at the root of the theme.

Add the following to the after_setup_theme hook.
add_theme_support( 'less', array(
'enable' => true
) );

For more information on advanced usage, other options or to join development, visit the Github repo.

各版本下載點

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

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


1.0.1 | 1.0.2 | trunk |

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

  • Less.js for WordPress 》LESS 可以透過變數、mixin、運算和函數等動態行為來擴充 CSS。LESS 可以在客戶端(IE 6+、Webkit、Firefox)和伺服器端(使用 Node.js)執行。, 欲獲取更多資...。

文章
Filter
Mastodon