WordPress plugin intelligence profile

Same Height

Force different parts of your content to the same height. Very useful if you want to present to boxes side by side. Responsive and bootstrap-friendly.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.7
Current version1.4.1
WordPress coverageTested up to WordPress 4.7
Minimum stackWP 1.3.0 · PHP —
Directory statusactive
Last directory update24 Jan 20179y ago
Active installations100Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 4 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 Same Height version 1.4.1 as active, updated 9y ago and tested up to WordPress 4.7.

Overview

About this plugin

Sometimes we want to display to boxes side by side and they have to look the same. CSS doesn’t always help.

This plugin will use jQuery to detect the boxes you want and force them all to have the same size. The size is uses is the size of the tallest box.

If you have a some parts of your content that need to have the same height, simply wrap them with the [sameheight/] shortcode like this:

[sameheight]

This is a short text

[/sameheight]

[sameheight]

This is a very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very long text

[/sameheight]

When the html renders on your screen, both parts content parts will look equally height. This is very useful if they are floating next to each other and they have a background.

What if I have different sizes in the same page?

You can group shortcodes like this:

[sameheight group=”1″]

This is a very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very long text

[/sameheight]

[sameheight group=”1″]

This is a short text

[/sameheight]

[sameheight group=”2″]

This is another short text

[/sameheight]

[sameheight group=”2″]

This text is long, but not quite as long as the previous one. So, I don’t want these to parts to look as long. But they should still look the same.

[/sameheight]

What if I have a responsive site and I only want the same height to apply in wide-screen, side-by-side configurations?

You can add a breakpoint like this.

[sameheight breakpoint=”xs” ] (You could even use no breakpoint at all)

This is a very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very long text

[/sameheight]

[sameheight breakpoint=”xs” ] (You could even use no breakpoint at all)

This text always has to use the same height than the previous one.

[/sameheight]

[sameheight breakpoint=”md”]

This is a very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very long text

[/sameheight]

[sameheight breakpoint=”md”]

This text only has to use the same height when it is next to the previous, but not when it is underneath on smarphones.

[/sameheight]

You have these breakpoints (those familiar with bootstrap know them):

  • “xs” forces same height for all window widths (extra small window – smartphone). Alternatively, you can use no breakpoint
  • “sm” forces same height for window widths > 768px (small window – small tablet)
  • “md” forces same height for window widths > 992px (medium window – table or small desktop)
  • “lg” forces same height for window widths > 1200px (large window – desktop)

Names and widths are based on bootstrap.

Please, note that shortcodes with different “breakpoint” will be in different groups regardless of the “group” setting. You can still use “group” to separate to groups with the same “breakpoint”.

I have some styles in CSS for my classes. How can I apply classes to the content?

Easy:

[sameheight additional_classes=”my-class1 my-classA”]

This is a short text

[/sameheight additional_classes=”my-class2 my-classB”]

[sameheight]

This is a very, very, very, very, very, very long text

[/sameheight]

Can I use all the possibilities together?

Sure:

[sameheight group=”1″ breakpoint=”md” additional_classes=”my-class1 my-classA” /] will work.

Do I need to use the shortcode?

No! If you are editing your html, you can put the right properties in it. That’s all tha shortcode does.

Make sure you add the class ‘same-height’. If you use a break point, add it with a hyphen (-) like this: ‘same-height-xs’, ‘same-height-sm’, ‘same-height-md’, or ‘same-height-lg’. The Javascript is looking for those classes to identify the html elements it has to work on.

If you are grouping boxes, use the ‘same-height-group’ property. Like <div class="same-height" same-height-group="1" >

WordPress.org metadata

Plugin tags

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

  • css
  • javascript
  • jquery
  • sameheight
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.7

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

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.7
Minimum requirementsWordPress 1.3.0 · PHP not listed
Update activity24 Jan 20179y 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.