Title: Customizer Responsive Server-Side Components Device Preview
Author: Weston Ruter
Published: <strong>29 Tháng 10, 2016</strong>
Last modified: 9 Tháng 11, 2017

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# Customizer Responsive Server-Side Components Device Preview

 Bởi [Weston Ruter](https://profiles.wordpress.org/westonruter/)

[Tải về](https://downloads.wordpress.org/plugin/customizer-responsive-device-preview.0.1.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/customizer-responsive-device-preview/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/customizer-responsive-device-preview/#reviews)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/customizer-responsive-device-preview/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/customizer-responsive-device-preview/)

## Mô tả

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).**

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Customizer Responsive Server-Side Components Device Preview” là mã nguồn mở. Những
người sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “Customizer Responsive Server-Side Components Device Preview” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/customizer-responsive-device-preview)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/customizer-responsive-device-preview/),
check out [SVN repository](https://plugins.svn.wordpress.org/customizer-responsive-device-preview/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/customizer-responsive-device-preview/)
qua [RSS](https://plugins.trac.wordpress.org/log/customizer-responsive-device-preview/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

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

## Meta

 *  Phiên bản **0.1.1**
 *  Cập nhật lần cuối **9 năm trước**
 *  Số lượt cài đặt **70+**
 *  Phiên bản WordPress ** 4.7 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.9.31**
 *  Phiên bản PHP ** 5.3 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/customizer-responsive-device-preview/)
 * Thẻ
 * [adaptive](https://vi.wordpress.org/plugins/tags/adaptive/)[customize](https://vi.wordpress.org/plugins/tags/customize/)
   [customizer](https://vi.wordpress.org/plugins/tags/customizer/)[responsive](https://vi.wordpress.org/plugins/tags/responsive/)
   [rwd](https://vi.wordpress.org/plugins/tags/rwd/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/customizer-responsive-device-preview/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/customizer-responsive-device-preview/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/customizer-responsive-device-preview/)