Title: Vertical Center
Author: Braad
Published: <strong>اپریل 1, 2015</strong>
Last modified: دسمبر 7, 2015

---

پلگ انز تلاش کریں

![](https://ps.w.org/vertical-center/assets/banner-772x250.png?rev=1125121)

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

![](https://ps.w.org/vertical-center/assets/icon-256x256.png?rev=1125121)

# Vertical Center

 منجانب [Braad](https://profiles.wordpress.org/braad/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/vertical-center.1.1.1.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/vertical-center/#description)
 * [جائزے](https://ur.wordpress.org/plugins/vertical-center/#reviews)
 *  [انسٹالیشن](https://ur.wordpress.org/plugins/vertical-center/#installation)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/vertical-center/#developers)

 [معاونت](https://wordpress.org/support/plugin/vertical-center/)

## تفصیل

Vertical Center lets you easily vertically center elements.

#### خصوصیات

 * 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](https://wordpress.org/plugins/vertical-center/screenshots/)
for a gif of the plugin in action.

#### Instructions

 1. Navigate to **Settings > Vertical Center** in the WordPress admin.
 2. Enter a _selector_ and an _offset_ for the element(s) you want to center.
 3. Add/remove additional elements by clicking the "+ Add More” and "Remove” buttons.

#### اعلٰی ترین

Want to trigger the vertical centering manually? No problem. You can skip entering
a selector on the settings page and call the jQuery script yourself using either`.
initVerticalCenter()` or `.doVerticalCenter()`. The `.initVerticalCenter()` method
sets up the event listeners to recalculate if the window is resized, while the `.
doVerticalCenter()` method directly centers without attaching any events:

    ```
    // Attach events and center.
    jQuery( '.selector' ).initVerticalCenter();

    // Center without attaching events.
    jQuery( '.selector' ).doVerticalCenter();
    ```

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

    ```
    jQuery( '.selector' ).initVerticalCenter( offset );

    jQuery( '.selector' ).doVerticalCenter( offset );
    ```

To offset the calculation by 20 pixels:

    ```
    jQuery( '.selector' ).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:

    ```
    jQuery( '.selector' ).initVerticalCenter().delay( 200 ).fadeTo( 'slow', 1 );
    ```

Or to achieve the same effect with only CSS you can use the `vc-complete` class 
that gets added to each target element after the initial centering (added in version
1.0.3), which might look like this:

    ```
    #target {
        opacity: 0;
        transition: opacity 0.5s;
    }

    #target.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:

    ```
    jQuery( window ).trigger( 'verticalcenter' );
    ```

## اسکرین شاٹس

 * [[
 * The easy-to-use admin interface.
 * [[
 * Vertical centering in action.

## انسٹالیشن

#### Manual Installation

 1. Upload the entire `/vertical-center` directory to the `/wp-content/plugins/` directory.
 2. Activate Vertical Center through the ‘Plugins’ menu in WordPress.

#### Better Installation

 1. Go to Plugins > Add New in your WordPress admin and search for Vertical Center.
 2. Click Install.

## عمومی سوالات

  Is this plugin fully responsive?

Yes! When the script runs it creates event listeners for the window resize and orientationchange
events and recalculates the vertical centering after those events trigger.

  Does the plugin support multiple items that get vertically centered independently?

Yes! From the settings page you can enter as many selectors as you’d like, giving
you the ability to vertically center an unlimited number of items.

  What if I am dynamically adding the element I want to center to the page after
it loads?

The jQuery script uses the selector to always grab the items fresh from the DOM 
in its current state, so as long as the selector matches the newly added element
it will get included in the calculation. You can trigger the vertical centering 
manually at any time (such as after new content has been added via AJAX) by triggering
the ‘verticalcenter’ event on the window like this:

    ```
    jQuery( window ).trigger( 'verticalcenter' );
    ```

## جائزے

![](https://secure.gravatar.com/avatar/265aee9d16e025790cd1fb58f2fefb45ec173ab54f04be2da41e2df3f763269c?
s=60&d=retro&r=g)

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-1413/)󠁿

 [engin3x60](https://profiles.wordpress.org/engin3x60/) اگست 17, 2017

Works without problems. Easy to use. Saved me like 3 hours of work.

![](https://secure.gravatar.com/avatar/bef42f4e492576aaa7a439420ff1c232a1e2afe0d7793809dee10d727fb9abb2?
s=60&d=retro&r=g)

### 󠀁[Very nice tool](https://wordpress.org/support/topic/very-nice-tool-4/)󠁿

 [Zetona](https://profiles.wordpress.org/zetona/) جنوری 28, 2017

Thank you for this immense helper.

![](https://secure.gravatar.com/avatar/354067edc6f097d2f751105ff9cf0e1f00fe72ab44041e2f9ec57df390a287a4?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin!](https://wordpress.org/support/topic/excellent-plugin-2075/)󠁿

 [artmaug](https://profiles.wordpress.org/artmaug/) ستمبر 3, 2016

This plugin has been of great help in the development of responsive websites. Easy
to use, it works seamlessly. Many thanks to the developer!

![](https://secure.gravatar.com/avatar/d615026d9c1706a85c2f11bf6c4326cbcde32fa33535f4c617d29767c3755c79?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-4016/)󠁿

 [leftism](https://profiles.wordpress.org/leftism/) ستمبر 3, 2016 1 reply

Just works

 [ تمام 5 جائزے پڑھیں ](https://wordpress.org/support/plugin/vertical-center/reviews/)

## شراکت دار اور ڈیویلپرز

“Vertical Center” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ 
لیا:

شراکت دار

 *   [ Braad ](https://profiles.wordpress.org/braad/)

[“Vertical Center” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/vertical-center)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/vertical-center/)، [ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/vertical-center/)
کو چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/vertical-center/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/vertical-center/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

#### 1.1.1

 * Fix JS error when no option has yet been saved

#### 1.1.0

 * Code cleanup and refactoring
 * The plugin class now loads on ‘init’
 * All strings are now translatable
 * Added direct JS method `.doVerticalCenter()`
 * Bugfix: Pass correct plugin version when enqueueing the admin css

#### 1.0.3

 * A class is now added to each target element after it has been initially centered

#### 1.0.2

 * Improve centering calculation when parent elements have padding

#### 1.0.1

 * Added support for using selectors that match multiple items
 * Improved compatibility with other plugins that use JS to affect layout
 * Bugfix: Better scoping of the admin JS to prevent conflicts with other plugins

#### 1.0.0

 * First release

## میٹا

 *  Version **1.1.1**
 *  Last updated **10 سال پہلے**
 *  Active installations **80+**
 *  WordPress version ** 3.8 یا اس سے جدید **
 *  Tested up to **4.4.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/vertical-center/)
 * Tags
 * [center](https://ur.wordpress.org/plugins/tags/center/)[javascript](https://ur.wordpress.org/plugins/tags/javascript/)
   [jquery](https://ur.wordpress.org/plugins/tags/jquery/)[responsive](https://ur.wordpress.org/plugins/tags/responsive/)
   [vertical](https://ur.wordpress.org/plugins/tags/vertical/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/vertical-center/advanced/)

## درجہ بندیاں

 5 out of 5 stars.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/vertical-center/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/vertical-center/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/vertical-center/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/vertical-center/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/vertical-center/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/vertical-center/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/vertical-center/reviews/)

## شراکت دار

 *   [ Braad ](https://profiles.wordpress.org/braad/)

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/vertical-center/)

## عطیہ دیں

کیا آپ اس پلگ ان کی ترقی میں معاونت کرنا چاہتے ہیں؟

 [ اس پلگ ان کو عطیہ دیں ](http://braadmartin.com)