Title: Genesis Widget Column Classes
Author: Jory Hogeveen
Published: <strong>2015 年 8 月 3 日</strong>
Last modified: 2024 年 11 月 12 日

---

搜索插件

![](https://ps.w.org/genesis-widget-column-classes/assets/banner-772x250.png?rev
=1474678)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/genesis-widget-column-classes/assets/icon-256x256.png?rev=1474678)

# Genesis Widget Column Classes

 作者：[Jory Hogeveen](https://profiles.wordpress.org/keraweb/)

[下载](https://downloads.wordpress.org/plugin/genesis-widget-column-classes.1.3.1.zip)

 * [详情](https://cn.wordpress.org/plugins/genesis-widget-column-classes/#description)
 * [评价](https://cn.wordpress.org/plugins/genesis-widget-column-classes/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/genesis-widget-column-classes/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/genesis-widget-column-classes/#developers)

 [支持](https://wordpress.org/support/plugin/genesis-widget-column-classes/)

## 描述

As easy as it gets. Add column classes to widgets with a select box, check whether
the widget is the first, and save!

I’ve built this plugin for the Genesis Framework, though it will work with any theme
that uses the (old) Bootstrap column classes.

You can also add your own classes through various filters to use this plugin with
your theme’s grid framework.

#### Compatibility (IMPORTANT!)

This plugin does **NOT** add CSS for these columns. It **ONLY** adds the column 
classes to your widgets. The actual CSS should be added in your theme.

#### Filter: `genesis_widget_column_classes`

Allows you to change the available column classes

**Parameters:** `array` Default column classes.
 **Return:** `array` Array of column
classes.

#### Filter: `genesis_widget_column_classes_capability`

Change the capability required to modify column classes.
 Since 1.2.2

**Default:** `edit_theme_options`
 **Parameters:** `string` The default capability.**
Return:** `string` The new capability.

#### Filter `genesis_widget_column_classes_select_multiple`

Allow multiple classes to be selected.
 Since 1.3 **Return:** boolean.

You can use these filters inside your theme functions.php file or in a plugin.
 
You can find me here:

 * [Keraweb](http://www.keraweb.nl/)
 * [GitHub](https://github.com/JoryHogeveen/genesis-widget-column-classes/)
 * [LinkedIn](https://nl.linkedin.com/in/joryhogeveen)

## 屏幕截图

 * [[
 * Widget admin view
 * [[
 * Frontend example ( `one-third + first` | `one-third` | `one-third` )

## 安装

Installation of this plugin works like any other plugin out there. Either:

 1. Upload and unpack the zip file to the ‘/wp-content/plugins/’ directory
 2. 通过WordPress的“插件”菜单激活插件

Or search for “Genesis Widget Column Classes” via your plugins menu.

## 评价

![](https://secure.gravatar.com/avatar/5cfc0e3ee08178502da562784804c6fe05a8c26144b082e098321e71c7f9d9d8?
s=60&d=retro&r=g)

### 󠀁[More trouble than it’s worth](https://wordpress.org/support/topic/more-trouble-than-its-worth-4/)󠁿

 [kevkong1](https://profiles.wordpress.org/kevkong1/) 2019 年 11 月 1 日 2 回复

Tried using thirds will not work on my theme the %’s are all wrong, pointless margin
left makes the grid look out of place. Easier to write your own CSS.

![](https://secure.gravatar.com/avatar/a4527f3b437b27e5b23b6e7d2094b730e7815c0c4e8fb3c2cf1ddf74626b1591?
s=60&d=retro&r=g)

### 󠀁[Simple and Beautiful](https://wordpress.org/support/topic/simple-and-beautiful-45/)󠁿

 [joegestalt](https://profiles.wordpress.org/joegestalt/) 2018 年 8 月 26 日

Such a simple thing to add column classes to widget, but it makes working with genesis
themes so much easier. Haven’t come across any bugs either, it just work. Thanks
for the great plugin!

![](https://secure.gravatar.com/avatar/e6a2aa8a79d7b7f2df09facedd11ade610fec3941359ab6da5cc88a0d3ddc615?
s=60&d=retro&r=g)

### 󠀁[Super Plugin with Stellar Support](https://wordpress.org/support/topic/super-plugin-with-stellar-support/)󠁿

 [lisapike](https://profiles.wordpress.org/lisapike/) 2018 年 6 月 22 日

A great plugin that works seamlessly in the background to give your site that polished
look. Stellar Support by Jory Hogeveen when you need it too!

![](https://secure.gravatar.com/avatar/c6f9cc10f4d432bdd19b708db089a864ce0c24264312b2b782276cb86c9c1831?
s=60&d=retro&r=g)

### 󠀁[Great plugin, works perfect. Ideal utility and saves a lot of time.](https://wordpress.org/support/topic/great-plugin-works-perfect-ideal-utility-and-saves-a-lot-of-time/)󠁿

 [marcfuller](https://profiles.wordpress.org/marcfuller/) 2018 年 5 月 4 日

Thanks for creating and adding to the repository!

![](https://secure.gravatar.com/avatar/e040670387bdbfdff37ae3193cf8656f96d10acfbb09ffa3aded5dc6dc5f0542?
s=60&d=retro&r=g)

### 󠀁[Just foudn this awesome plugin](https://wordpress.org/support/topic/just-foudn-this-awesome-plugin/)󠁿

 [cientiros](https://profiles.wordpress.org/cientiros/) 2016 年 9 月 3 日

It’s perfect. Thank you!

![](https://secure.gravatar.com/avatar/ff1c5ecb092d1e772fe220d105e6848ee72329972a237e00f9728176536a0a21?
s=60&d=retro&r=g)

### 󠀁[PERFECT](https://wordpress.org/support/topic/perfect-3146/)󠁿

 [Media Networking](https://profiles.wordpress.org/innovative1/) 2016 年 9 月 3 
日

Exactly what we were looking for. Thank you!

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/)

## 贡献者及开发者

「Genesis Widget Column Classes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jory Hogeveen ](https://profiles.wordpress.org/keraweb/)

「Genesis Widget Column Classes」插件已被翻译至 7 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/genesis-widget-column-classes/contributors)
为本插件所做的贡献。

[帮助将「Genesis Widget Column Classes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/genesis-widget-column-classes)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/genesis-widget-column-classes/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/genesis-widget-column-classes/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/genesis-widget-column-classes/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/genesis-widget-column-classes/)。

## 更新日志

#### 1.3.1

 * **Enhancement:** Load widget admin CSS in site head instead of each widget separately.

Detailed info: [PR on GitHub](https://github.com/JoryHogeveen/genesis-widget-column-classes/pull/14)

#### 1.3

 * **Feature:** New filter: `genesis_widget_column_classes_select_multiple` to allow
   multiple class selections. [#8](https://github.com/JoryHogeveen/genesis-widget-column-classes/issues/8)
 * **Compatibility:** [Dark Mode](https://wordpress.org/plugins/dark-mode/) ([Github](https://github.com/danieltj27/Dark-Mode))

Detailed info: [PR on GitHub](https://github.com/JoryHogeveen/genesis-widget-column-classes/pull/10)

#### 1.2.4.1

 * **Fix:** PHP notice. [#9](https://github.com/JoryHogeveen/genesis-widget-column-classes/issues/9)

#### 1.2.4

 * **Enhancement:** UI improvement.
 * **Enhancement:** Add support links on plugins overview page.
 * **Maintenance:** Updated to CodeClimate v2.
 * **Updated/Added:** Screenshot.

Detailed info: [PR on GitHub](https://github.com/JoryHogeveen/genesis-widget-column-classes/pull/7)

#### 1.2.3

 * **Enhancement:** Better attribute replacement.
 * **Enhancement:** Add wrapper div if the widget parameters are incorrect.
 * **Enhancement:** Do not load textdomain if the user does not have access.
 * **Compatibility:** Tested with WordPress 4.9.

Detailed info: [PR on GitHub](https://github.com/JoryHogeveen/genesis-widget-column-classes/pull/6)

#### 1.2.2

 * **Feature:** new filter `genesis_widget_column_classes_capability`. Change the
   capability required to modify column classes.
 * **Enhancement:** Helper method to get the available column classes.
 * **Enhancement:** Fix CodeClimate coding standards issues.

Detailed info: [PR on GitHub](https://github.com/JoryHogeveen/genesis-widget-column-classes/pull/5)

#### 1.2.1

 * **Enhancement:** Fixed code inspections from CodeClimate.
 * **Compatibility:** Tested with WordPress 4.8.

#### 1.2

 * **Compatibility:** Compatibility with plugins that use the `widget_display_callback`
   hook.
 * **Enhancement:** Remove duplicate classes if found.
 * **Enhancement:** Update textdomain hook.

#### 1.1.4

 * **Enhancement:** Usage of the WP_Widget object for generating input names and
   ID’s.
 * **Feature:** Add filter `genesis_widget_column_classes` to add/modify available
   column classes.
 * **Compatibility:** Tested with WordPress 4.6.

#### 1.1.3

 * **Enhancement:** Usage of a single instance of the class.
 * **Compatibility:** Add support for translate.wordpress.org.
 * **Enhancement:** Minor code standard fixes.

#### 1.1.2

 * **Enhancement:** Allow “first” class when no width is selected.

#### 1.1.1

 * **Fix:** constructor for PHP7.

#### 1.1

 * **Enhancement:** Make plugin object oriented (OOP).
 * **Enhancement:** Make “no genesis theme” nag dismissible.
 * **Enhancement:** Code, format and security improvements.

#### 1.0.1

 * **Enhancement:** Some small improvements.

#### 1.0

 * Created from nothingness just to be one of the cool kids. Yay!

## 额外信息

 *  版本 **1.3.1**
 *  最后更新：**2 年前**
 *  活跃安装数量 **5,000+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/genesis-widget-column-classes/) 、 [English (Australia)](https://en-au.wordpress.org/plugins/genesis-widget-column-classes/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/genesis-widget-column-classes/)、
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/genesis-widget-column-classes/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/genesis-widget-column-classes/)、
   [English (US)](https://wordpress.org/plugins/genesis-widget-column-classes/) 、
   [French (France)](https://fr.wordpress.org/plugins/genesis-widget-column-classes/)
   和 [Swedish](https://sv.wordpress.org/plugins/genesis-widget-column-classes/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/genesis-widget-column-classes)
 * 标签
 * [bootstrap](https://cn.wordpress.org/plugins/tags/bootstrap/)[column](https://cn.wordpress.org/plugins/tags/column/)
   [genesis](https://cn.wordpress.org/plugins/tags/genesis/)[grid](https://cn.wordpress.org/plugins/tags/grid/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/genesis-widget-column-classes/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/genesis-widget-column-classes/reviews/)

## 贡献者

 *   [ Jory Hogeveen ](https://profiles.wordpress.org/keraweb/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/genesis-widget-column-classes/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.keraweb.nl/donate.php?for=genesis-widget-column-classes)