Nginx Mobile Theme
This plugin allows you to switch theme according to the User Agent on the Nginx reverse proxy.
Envisager une alternative
Nginx Mobile Theme shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites, is rated 5/5 and was last updated 8 years ago, and scores 33/100 on our health check.
- Petite base d'utilisateurs (plus de 200 installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 8 ans
- Uniquement testé jusqu'à WordPress 4,9 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Nginx Mobile Theme stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| mobile | >100 |
| nginx | >100 |
| smartphone | >100 |
| tablet | >100 |
| thème | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★ ★★★★★ 5 sur 2 avis
About Nginx Mobile Theme
From the official readme · v1.8.2Description
This plugin allows you to switch theme according to the User Agent on the Nginx reverse proxy.
Nginx Mobile Theme’s requirements are as follows.
- PHP 5.3 or later
- WordPress 3.7 or later
- Nginx Cache Controller 2.0.0 or later
Some Features
- You can flush mobile’s and pc’s each caches automatically via Nginx Cache Controller.
- Allow you to switch theme according to the user-agent.
- Allow you to customize multiple mobile device support via filter-hook.
Nginx Configuration
Add mobile device detection to the nginx.conf.
set $mobile '';
if ($http_user_agent ~* '(iPhone|iPod|incognito|webmate|Android|dream|CUPCAKE|froyo|BlackBerry|webOS|s8000|bada|IEMobile|Googlebot\-Mobile|AdsBot\-Google)') {
set $mobile "@smartphone";
}
Set proxy_cache_key.
proxy_cache_key "$mobile$scheme://$host$request_uri";
Send custom request header to the backend.
proxy_set_header X-UA-Detect $mobile;
Nginx Mobile Theme will switch theme when ‘@smartphone’ is received in the $_SERVER['HTTP_X_UA_DETECT'].
Comment utiliser
- Please access to the theme-customizer in the WordPress admin area.
- Please select Mobile Theme in the drop-down.
- Click “Save & Publish” button to save.
Multiple mobile device support
- Add custom mobile detection to the nginx.conf.
- Add custom mobile detection to the WordPress via
nginxmobile_mobile_detectsfilter-hook.
nginx.conf:
set $mobile ”;
if ($http_user_agent ~* ‘(iPhone|iPod)’) {
set $mobile “@smartphone”;
}
if ($http_user_agent ~* ‘iPad’) {
set $mobile “@tablet”;
}
In your custom plugin:
add_filter(‘nginxmobile_mobile_detects’, function(){
return array(‘@smartphone’, ‘@tablet’);
});
- As a result, allow you to select theme for @smartphone and @tablet individually in the theme-customizer.
Amimoto Support
The Amimoto is a full-tuned WordPress AMI on the AWS EC2.
- Uncomment /etc/nginx/conf.d/default.conf in line 17
before:
#include /etc/nginx/mobile-detect;
after:
include /etc/nginx/mobile-detect;
- Add line to /etc/nginx/nginx.conf like following.
before:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding “”;
after:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding “”;
proxy_set_header X-UA-Detect $mobile; # add new line
-
Define constant in the wp-config.php
define(‘IS_AMIMOTO’, true);
Installation
- Upload
nginx-mobile-themeto the/wp-content/plugins/directory. - Activez le plugin via le menu "plugins" dans WordPress.
Journal de modifications
1.8.1
- Add query strings mobile=on and mobile=off
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
- Add support child theme.
- Add notice when Nginx Cache Controller is not activated.
https://github.com/megumiteam/nginx-mobile-theme/compare/1.0.0…1.1.0
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Nginx Mobile Theme alternatives
All mobile plugins →FAQ
Nginx Mobile Theme: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Nginx Mobile Theme free?
Yes. Nginx Mobile Theme is free to download and use from the official WordPress.org plugin directory.
Is Nginx Mobile Theme safe to use in 2026?
Nginx Mobile Theme shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites, is rated 5/5 and was last updated 8 years ago, and scores 33/100 on our health check.
How many websites use Nginx Mobile Theme?
Nginx Mobile Theme is active on 200+ WordPress websites and has been downloaded 247,049 times since it launched in November 2013. It was downloaded 1,545 times in the last 30 days.
Does Nginx Mobile Theme work with WordPress 7.1?
Nginx Mobile Theme is officially tested up to WordPress 4.9.36, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Nginx Mobile Theme last updated?
The latest version, 1.8.2, was released on October 17, 2018 (8 years ago).
Who makes Nginx Mobile Theme?
Nginx Mobile Theme is developed and maintained by Takayuki Miyauchi.
What are the best alternatives to Nginx Mobile Theme?
The most popular alternatives to Nginx Mobile Theme are AMP (300K+ installs), AMP for WP (70K+ installs) and WP Mobile Menu (70K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit

