This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

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:

स्क्रीनशॉट

  • 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. Activate the plugin through the ‘Plugins’ menu in WordPress

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

समीक्षा

नोव्हेंबर 1, 2019 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.
ऑगस्ट 26, 2018
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!
जून 22, 2018
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!
सर्व 8 पुनरावलोकने वाचा

योगदानकर्ते आणि विकसक

“Genesis Widget Column Classes” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत योगदान केले आहे.

योगदानकर्ते

“Genesis Widget Column Classes” 7 लोकॅलसमध्ये भाषांतरित केले आहे. अनुवादकांना त्यांच्या योगदानाबद्दल धन्यवाद.

भाषांतर करा “Genesis Widget Column Classes” तुमच्या भाषेत.

विकासातील आग्रह?

कोड ब्राउझ करा, SVN संग्रहालय तपासा, किंवा विकास लॉग च्या RSS द्वारे सदस्यता घ्या.

बदलांची यादी

1.3.1

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

Detailed info: PR on GitHub

1.3

  • Feature: New filter: genesis_widget_column_classes_select_multiple to allow multiple class selections. #8
  • Compatibility: Dark Mode (Github)

Detailed info: PR on GitHub

1.2.4.1

  • Fix: PHP notice. #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

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

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

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!