WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Easy Widget Columns

Easily display widgets in rows of columns.

Easy Widget Columns makes it really easy to arrange your widgets in rows of columns. It works by adding a new 'Column width' select option at the bottom of your widget’s form that allows you to set a width value for each widget.

You can define new rows of widget columns with the 'Widget Row' widget, allowing you to create complex layouts directly from within your widget area or sidebar.

Genesis Framework users, be sure to check out the Widgetized Page Template plugin, which helps you create full-page widget areas to use as a "blank canvas" with Easy Widget Columns.

Works With Most Themes

Easy Widget Columns is optimized for use with the Genesis Framework, but it is not required. It uses the Genesis Framework Column Classes to display your widgets in rows of columns. If your theme already incorporates the Genesis Framework Column Classes, or you want to manually add or edit the CSS, you can choose not to load the CSS under 'Settings' > 'Widget Columns' and rely on your theme’s stylesheet instead. This option is recommended for most Genesis users or those concerned with loading additional assets on their website.

Translation and RTL Ready

The plugin supports RTL layouts and is translation ready.

Filters for Developers

The following filters are available for you to add or remove the 'Column width' control from specific widgets giving you full control over your widgets.

  • ewc_include_widgets is a whitelist filter used to add the control ONLY to the specified widgets.
  • ewc_exclude_widgets is a blacklist filter used to remove the control from the specified widgets.

Both filters accept the widget’s ID base as parameters. Please note that you cannot use both filters at once. The ewc_include_widgets filter will always take precedence over the ewc_exclude_widgets filter and overwrite it.

The examples below demonstrate how you can implement these filters on your theme using the default WordPress widgets:

add_filter( 'ewc_include_widgets', 'myprefix_add_ewc_control' );
/**
 * Filter to add the EWC control to specified widgets.
 *
 * @param   array   An empty array.
 * @return  array   An array containing the widget's ID base.
 */
function myprefix_add_ewc_control( $ewc_widgets ) {
    
    $ewc_widgets = array(
        'meta', // WP Meta widget
        //'nav_menu', // WP Custom Menu widget
        'archives', // WP Archives widget
        'calendar', // WP Calendar widget
        'categories', // WP Categories widget
        //'links', // WP Links widget
        //'pages', // WP Pages widget
        //'recent-comments', // WP Recent Comments widget
        //'recent-posts', // WP Recent Posts widget
        //'rss', // WP RSS widget
        //'search', // WP Search widget
        //'tag_cloud', // WP Tag Cloud widget
        //'text', // WP Text widget
    );
    
    return $ewc_widgets;
    
}
add_filter( 'ewc_exclude_widgets', 'myprefix_remove_ewc_control' );
/**
 * Filter to remove the EWC control from specified widgets.
 *
 * @param   array   An empty array.
 * @return  array   An array containing the widget's ID base.
 */
function myprefix_remove_ewc_control( $ewc_widgets ) {
    
    $ewc_widgets = array(
        //'meta', // WP Meta widget
        //'nav_menu', // WP Custom Menu widget
        'archives', // WP Archives widget
        'calendar', // WP Calendar widget
        'categories', // WP Categories widget
        'links', // WP Links widget
        //'pages', // WP Pages widget
        'recent-comments', // WP Recent Comments widget
        'recent-posts', // WP Recent Posts widget
        'rss', // WP RSS widget
        //'search', // WP Search widget
        'tag_cloud', // WP Tag Cloud widget
        //'text', // WP Text widget
    );
    
    return $ewc_widgets;
    
}

The ewc_color_palette filter allows you to add a custom color palette to the color picker control in the 'Widget Row' widget. The filter accepts an array of hex color values as parameters.

The example below demonstrates how you can implement this filter on your theme:

add_filter( 'ewc_color_palette', 'myprefix_ewc_color_palette' );
/**
 * Filter to edit the color palette in the color picker control.
 *
 * @param   array   An empty array.
 * @return  array   An array containing hex color values.
 */
function myprefix_ewc_color_palette( $color_palette ) {
    
    $color_palette = array(
        '#252724',
        '#ce6b36',
        '#31284b',
        '#a03327',
        '#3b3e3e',
        '#67b183',
    );
    
    return $color_palette;
    
}

The ewc_advanced_options filter allows you to completely remove the advanced options from the 'Widget Row' widget. This can be useful for limiting design functionality on a client website (decisions, not options).

The example below demonstrates how you can implement this filter on your theme:

// Remove advanced options from the Widget Row widget
add_filter( 'ewc_advanced_options', '__return_false' );

Requires: 4.5 or higher
Compatible up to: 4.8
Last Updated: 1 week ago
Active Installs: 50+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.