WordPress plugin intelligence profile

Vertical Center

Easily vertically center any element relative to its container. Fully responsive.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.4
Current version1.1.1
WordPress coverageTested up to WordPress 4.4
Minimum stackWP 3.8 · PHP —
Directory statusactive
Last directory update7 Dec 201510y ago
Active installations60Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 5 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 Vertical Center version 1.1.1 as active, updated 10y ago and tested up to WordPress 4.4.

Overview

About this plugin

Vertical Center lets you easily vertically center elements.

Features

  • Center an unlimited number of elements independently
  • Specify simple CSS/jQuery selectors to target elements
  • Easy to use admin interface
  • Items are vertical centered immediately after the page has loaded
  • Adds a class to each centered element after it has been centered (useful for CSS transition effects)
  • Fully responsive (automatically updates on resize and orientationchange events)
  • Works on mobile devices
  • Works across all modern browsers (including IE8)
  • Trigger custom ‘verticalcenter’ event to force a recalculation
  • Debounced resize events for added smoothness

Check out the Screenshots tab for a gif of the plugin in action.

Instructions

  • Navigate to Settings > Vertical Center in the WordPress admin.
  • Enter a selector and an offset for the element(s) you want to center.
  • Add/remove additional elements by clicking the “+ Add More” and “Remove” buttons.

Advanced

Want to trigger the vertical centering manually? No problem. doVerticalCenter().

doVerticalCenter() method directly centers without attaching any events:

// Attach events and center. initVerticalCenter();

// Center without attaching events. doVerticalCenter();

Both functions take one optional argument, the offset value (as a number of pixels):

initVerticalCenter( offset );

doVerticalCenter( offset );

To offset the calculation by 20 pixels:

initVerticalCenter( 20 );

The functions are chainable. My personal favorite way to use this plugin is to inline style="opacity: 0;" on the elements that I am centering (to guarantee they’ll be transparent when the DOM loads) and then fade them in with something like this:

fadeTo( 'slow', 1 );

3), which might look like this:

5s; }

vc-complete { opacity: 1; }

This plugin also adds an event ‘verticalcenter’ to the window, allowing you to easily trigger the vertical centering manually. This is useful if you have added items to the page after it loads via AJAX. You can trigger the event like this:

trigger( 'verticalcenter' );

WordPress.org metadata

Plugin tags

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

  • center
  • javascript
  • jquery
  • responsive
  • vertical
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.4

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

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.4
Minimum requirementsWordPress 3.8 · PHP not listed
Update activity7 Dec 201510y 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.