Title: Customizer Responsive Server-Side Components Device Preview
Author: Weston Ruter
Published: <strong>اکتوبر 29, 2016</strong>
Last modified: نومبر 9, 2017

---

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

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

![](https://s.w.org/plugins/geopattern-icon/customizer-responsive-device-preview.
svg)

# Customizer Responsive Server-Side Components Device Preview

 منجانب [Weston Ruter](https://profiles.wordpress.org/westonruter/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/customizer-responsive-device-preview.0.1.1.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/customizer-responsive-device-preview/#description)
 * [جائزے](https://ur.wordpress.org/plugins/customizer-responsive-device-preview/#reviews)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/customizer-responsive-device-preview/#developers)

 [معاونت](https://wordpress.org/support/plugin/customizer-responsive-device-preview/)

## تفصیل

Read full writeup: [Previewing Themes with Adaptive Designs in the Customizer](https://make.xwp.co/2016/10/29/previewing-themes-with-adaptive-designs-in-the-customizer/).

This plugin extends the responsive device preview functionality in the customizer
which was added in 4.5 (see [#31195](https://core.trac.wordpress.org/ticket/31195)).
In core when you change the previewed device it merely changes the dimensions of
the preview, allowing you to simulate how the theme will appear on tablet or mobile
screens. What it does not do, however, is cause the preview to reload with the `
User-Agent` overridden for the current device being previewed. For themes that implement
a responsive design this core behavior is just fine since changing the dimensions
of the iframe will cause the appropriate media queries to apply. However, if you
have an adaptive design for your theme you won’t be able to see any server-side 
components that it may display when viewing a different device. For example, on 
mobile devices a theme may want to skip outputting the sidebar altogether to save
on bandwidth.

This plugin will ensure that the preview is refreshed when the previewed device 
is changed in addition to changing the preview window size. It will pass a `customize_previewed_device`
query parameter on the URL being previewed, and this parameter will be either `desktop`,`
tablet`, or `mobile`. The plugin will override the `$_SERVER['HTTP_USER_AGENT']`
to be a user agent representative of the supplied device type so that calls to `
wp_is_mobile()`, `jetpack_is_mobile()`, and `Jetpack_User_Agent_Info::is_tablet()`
will all return the expected values based on the current previewed device.

**Development of this plugin is done [on GitHub](https://github.com/xwp/wp-customizer-responsive-device-preview).
Pull requests welcome. Please see [issues](https://github.com/xwp/wp-customizer-responsive-device-preview/issues)
reported there before going to the [plugin forum](https://wordpress.org/support/plugin/customizer-responsive-device-preview).**

## جائزے

There are no reviews for this plugin.

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

“Customizer Responsive Server-Side Components Device Preview” اوپن سورس سافٹ ویئر
ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:

شراکت دار

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)
 *   [ XWP ](https://profiles.wordpress.org/xwp/)

[“Customizer Responsive Server-Side Components Device Preview” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/customizer-responsive-device-preview)

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

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

## چینج لاگ

#### 0.1.1 [2017-11-01]

 * Update minimum required version of WordPress to 4.7.
 * Re-use `parseQueryString` from core.
 * Explicitly require PHP 5.3.
 * Clean up JS, upgrade dev-lib.

#### 0.1.0 [2016-10-05]

Initial release.

## میٹا

 *  Version **0.1.1**
 *  Last updated **8 سال پہلے**
 *  Active installations **70+**
 *  WordPress version ** 4.7 یا اس سے جدید **
 *  Tested up to **4.9.29**
 *  PHP version ** 5.3 یا اس سے جدید **
 *  Language
 * [English (US)](https://wordpress.org/plugins/customizer-responsive-device-preview/)
 * Tags
 * [adaptive](https://ur.wordpress.org/plugins/tags/adaptive/)[customize](https://ur.wordpress.org/plugins/tags/customize/)
   [customizer](https://ur.wordpress.org/plugins/tags/customizer/)[responsive](https://ur.wordpress.org/plugins/tags/responsive/)
   [rwd](https://ur.wordpress.org/plugins/tags/rwd/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/customizer-responsive-device-preview/advanced/)

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

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/customizer-responsive-device-preview/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/customizer-responsive-device-preview/reviews/)

## شراکت دار

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)
 *   [ XWP ](https://profiles.wordpress.org/xwp/)

## معاونت

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

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