Title: Customizer Responsive Server-Side Components Device Preview
Author: Weston Ruter
Published: <strong>29 de octubre de 2016</strong>
Last modified: 9 de noviembre de 2017

---

Buscar plugins

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

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

# Customizer Responsive Server-Side Components Device Preview

 Por [Weston Ruter](https://profiles.wordpress.org/westonruter/)

[Descargar](https://downloads.wordpress.org/plugin/customizer-responsive-device-preview.0.1.1.zip)

 * [Detalles](https://es.wordpress.org/plugins/customizer-responsive-device-preview/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/customizer-responsive-device-preview/#reviews)
 * [Desarrollo](https://es.wordpress.org/plugins/customizer-responsive-device-preview/#developers)

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

## Descripción

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

## Reseñas

No hay valoraciones para este plugin.

## Colaboradores y desarrolladores

«Customizer Responsive Server-Side Components Device Preview» es un software de 
código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

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

[Traduce «Customizer Responsive Server-Side Components Device Preview» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/customizer-responsive-device-preview)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/customizer-responsive-device-preview/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/customizer-responsive-device-preview/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/customizer-responsive-device-preview/)
por [RSS](https://plugins.trac.wordpress.org/log/customizer-responsive-device-preview/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

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

 *  Versión **0.1.1**
 *  Última actualización **hace 9 años**
 *  Instalaciones activas **70+**
 *  Versión de WordPress ** 4.7 o superior **
 *  Probado hasta **4.9.29**
 *  Versión de PHP ** 5.3 o superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/customizer-responsive-device-preview/)
 * Etiquetas:
 * [adaptive](https://es.wordpress.org/plugins/tags/adaptive/)[customize](https://es.wordpress.org/plugins/tags/customize/)
   [customizer](https://es.wordpress.org/plugins/tags/customizer/)[responsive](https://es.wordpress.org/plugins/tags/responsive/)
   [rwd](https://es.wordpress.org/plugins/tags/rwd/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/customizer-responsive-device-preview/advanced/)

## Valoraciones

Aún no se han enviado valoraciones.

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

[Ver todas las valoraciones](https://wordpress.org/support/plugin/customizer-responsive-device-preview/reviews/)

## Colaboradores

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

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/customizer-responsive-device-preview/)