[WordPress] 外掛分享: Widget CSS Classes

首頁外掛目錄 › Widget CSS Classes
WordPress 外掛 Widget CSS Classes 的封面圖片
90,000+
安裝啟用
★★★★
4.9/5 分(74 則評價)
490 天前
最後更新
問題解決
WordPress 3.3+ PHP 5.2.4+ v1.5.4.1 上架:2012-07-15

內容簡介

Widget CSS Classes 可以讓您給 WordPress Widget 添加自定義的 class 和 id

請注意,此外掛並不支援輸入自定義的 CSS。您需要修改主題的 style.css,或加入其他外掛以便輸入自定義 CSS。

此外掛還會自動為 Widget 添加額外的 class,使您更容易樣式化它們:

widget-first:為側邊欄中的第一個 Widget 添加
widget-last:為側邊欄中的最後一個 Widget 添加
widget-odd:為側邊欄中序號為奇數的 Widget 添加
widget-even:為側邊欄中序號為偶數的 Widget 添加
widget-#:為每個 Widget 添加,例如 widget-1、widget-2

功能

為 Widget 添加一個文字欄位以定義 class
您可以在 class 之間用空格指定多個 class
可選擇添加預定義的 class 植物選框
可選擇添加一個文字欄位以添加 id 到 Widget
為第一個和最後一個 Widget 實例在側邊欄中添加 first 和 last class
為 Widget 添加奇數或偶數 class
為 Widget 添加序號 class
完全可翻譯
可與 Widget Logic、Widget Context 和 WP Page Widget 外掛兼容
具有用於自定義輸出(包括 class 名稱)的過濾器和鉤子

外掛網站

致謝

在 WordPress Widget 中添加自定義 CSS Class
自動向 WordPress Widget 添加 .first 和 .last CSS Class
Widget Context 兼容性修復由Joan Piedra提供
Slovak 翻譯由 Branco WebHostingGeeks.com提供
Polish 翻譯由 Tomasz Wesołowski 提供,並重新命名 Slovak 翻譯文件
西班牙翻譯由 Maria Ramos at WebHostingHub 提供
塞爾維亞克羅地亞文翻譯由 Borisa Djuraskovic at WebHostingHub 提供
荷蘭翻譯和預定義的 class 修正由 Jory Hogeveen at Keraweb 提供
俄羅斯翻譯由 Наталия Завьялова 提供
瑞典翻譯由 Olle Gustafsson 提供
修正 id 的注意事項由 Ricardo Lüders 提供

GitHub 的貢獻者

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.4.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Widget CSS Classes」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Widget CSS Classes gives you the ability to add custom classes and ids to your WordPress widgets
Please note that this plugin doesn’t enable you to enter custom CSS. You’ll need to edit your theme’s style.css or add another
plugin that allows you to input custom CSS.
This plugin also adds additional classes to widgets to help you style them easier:

widget-first: added to the first widget in a sidebar
widget-last: added to the last widget in a sidebar
widget-odd: added to odd numbered widgets in a sidebar
widget-even: added to even numbered widgets in a sidebar
widget-#: added to every widget, such as widget-1, widget-2

Features

Adds a text field to a widget for defining a class
You can specify multiple classes by putting a space between them
Optionally adds checkboxes with predefined classes
Optionally adds a text field to add an id to a widget
Adds first and last classes to the first and last widget instances in a sidebar
Adds even/odd classes to widgets
Adds number classes to widgets
Fully translatable
Multi-site compatible
Compatible with Widget Logic, Widget Context, and WP Page Widget plugins
Has filters and hooks for customizing output including class names

Plugin Website
Credits

Adding Custom CSS Classes to WordPress Widgets
Add .first & .last CSS Class Automatically To WordPress Widgets
Widget Context compatibility fix provided by Joan Piedra
Slovak translation by Branco WebHostingGeeks.com
Polish translation added, Slovak translation files renamed by Tomasz Wesołowski
Spanish translation by Maria Ramos at WebHostingHub
Serbo-Croatian translation by Borisa Djuraskovic at WebHostingHub
Dutch translation and predefined classes fix by Jory Hogeveen at Keraweb
Russian translation by Наталия Завьялова
Swedish translation by Olle Gustafsson
Fix ids notice by Ricardo Lüders
Brazilian Portuguese translation by Jonathan Xavier at Mealfan

Translation Contributors
GitHub Contributors

延伸相關外掛

文章
Filter
Apply Filters
Mastodon