WordPress plugin intelligence profile

Equal Height Columns

Easily equalize the height of columns or any collection of elements.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.9
Current version1.2.1
WordPress coverageTested up to WordPress 6.9
Minimum stackWP 3.5 · PHP —
Directory statusactive
Last directory update10 Mar 20267mo ago
Active installations10K+Adoption metric — not a quality score
WordPress.org rating4.9 / 5 from 41 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Equal Height Columns version 1.2.1 as active, updated 7mo ago and tested up to WordPress 6.9.

Overview

About this plugin

2

Like this plugin? Please consider leaving a 5-star review.

Equal Height Columns lets you easily equalize the height of various columns and elements.

Features

  • Target unlimited elements and element groups
  • Specify simple CSS/jQuery selectors to target elements
  • Specify breakpoint to kick in only at certain screen sizes
  • Easy to use admin interface
  • Heights are equalized immediately after the page has loaded
  • Fully responsive (automatically updates on resize and orientationchange events)
  • Works on mobile devices
  • Works across all modern browsers (including IE8)
  • Comes with custom event listener to manually trigger
  • Super small – 8kB jQuery file size
  • Trigger custom ‘equalheight’ event to force resize

Instructions

  • Navigate to Settings > Equal Height Columns in the WordPress admin.
  • Enter a selector and breakpoint for the first column group.
  • Add/remove column groups by clicking the “+ Add More” and “Remove” buttons.

Advanced

Want to trigger the equalizing of the heights manually? No problem. You can skip entering a selector on the settings page and call the jQuery script yourself using one of two functions:

initEqualHeights();

// Or

equalizeTheHeights();

The difference between these two functions is simply that initEqualHeights() will set up all the events for recalculating the heights when the window is resized or the global equalheights event is triggered, but equalizeTheHeights() will simply equalize the heights without involving any events.

Both functions take three optional arguments, the minimum height (number of pixels), maximum height, and the breakpoint (below which the heights will revert to their original size):

initEqualHeights( minHeight, maxHeight, breakPoint );

So an example might look like this:

initEqualHeights( 200, 500, 768 );

When entering a selector on the settings page or using the initEqualHeights() method this plugin also adds an event ‘equalheights’ to the window, allowing you to easily trigger the equalizing manually. This is useful if you have added new items to the page after it loads via AJAX. You can trigger the event like this:

trigger( 'equalheights' );

Another option for controlling which elements get equalized is the equal_height_columns_elements filter. This filter operates on the array of data that gets passed to the JS right before it is passed. This allows for developers to specify selectors that can’t be deleted from the settings page, and for programmaticly building selectors based on dynamic data.

Here’s an example of how the filter can be used:

add_filter( 'equal_height_columns_elements', 'custom_ehc_elements' ); function custom_ehc_elements( $elements ) {

ehc-target', // Selector goes here. 'breakpoint' => '768', );

return $elements; }

The keys on the element-groups array used by selectors entered on the settings page will come in as numbered indexes, so to avoid collision it’s best to use named keys for any custom selectors (we’re using ‘custom’ in the example above, but any unique string will work).

This plugin is on Github and pull requests are always welcome.

NEW: Multi rows

0 we are introducing a new feature (for now, only available via JavaScript) that resolves a common issue if the row number of certain elements varies across breakpoints when the number of columns change.

For example, if we have 2 columns for tablets and 3 columns for desktops, the third element in the group would be positioned on the second row for tablets but on the first row for desktops.

Before this new feature, the equal height would be based on all the elements from the group. Now you can have “subgroups” for each row, and recalculate when the number of columns in the rows change.

To use this new feature add the function once per breakpoint:

equalHeight( selector, columns, minWidth, maxWidth );

selector: The selector of the group of elements that you want to apply the equal height.

columns: The number of columns per row on the breakpoint.

minWidth: The minimum width of the breakpoint. Use 1 for mobile.

maxWidth: The maximum width of the breakpoint. You can leave empty for the biggest breakpoint.

demo-heading in a grid that has 1 column per row on mobile, 2 columns on tablet and 3 columns on desktop:

demo-heading', 3, 1025 ); // 3 columns for 1025px (and above)

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • column
  • div
  • element
  • equal
  • height
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.9
Minimum requirementsWordPress 3.5 · PHP not listed
Update activity10 Mar 20267mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.