Descripción
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:
Capturas
Instalación
Installation of this plugin works like any other plugin out there. Either:
- Upload and unpack the zip file to the ‘/wp-content/plugins/’ directory
- Activa el plugin en menú ‘Plugins’ de WordPress
Or search for «Genesis Widget Column Classes» via your plugins menu.
Reseñas
Colaboradores y desarrolladores
«Genesis Widget Column Classes» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«Genesis Widget Column Classes» está traducido en 7 idiomas. Gracias a los traductores por sus contribuciones.
Traduce «Genesis Widget Column Classes» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
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.
Información detallada: PR en 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.
- Destacado: añadido filtro
genesis_widget_column_classes
para añadir/modificar clases de columna disponibles. - Compatibilidad: Probado con WordPress 4.6.
1.1.3
- Mejora: Uso de una instacia simple de la clase.
- Compatibilidad: Añadir compatibilidad con translate.wordpress.org.
- Mejora: Reparaciones menores del estándar del código.
1.1.2
- Mejora: Permitir la clase «first» cuando no hay un ancho seleccionado.
1.1.1
- Reparado: constructor para PHP7.
1.1
- Mejora: Hacer el plugin orientado a objetos (OOP).
- Mejora: Hacer el insistente mensaje «no hay tema Genesis» descartable.
- Mejora: Mejorías en código, formato y seguridad.
1.0.1
- Mejora: Algunas pequeñas mejorías.
1.0
- Created from nothingness just to be one of the cool kids. Yay!