4WP Style Switcher
Apply theme.json style variations per page or let visitors switch styles on the frontend (FSE block themes).
Mit Vorsicht verwenden
4WP Style Switcher works, but test it on a staging site before relying on it in 2026. Was last updated 6 months ago, and scores 49/100 on our health check.
- Kleine Benutzerbasis (<10 aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where 4WP Style Switcher stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| block-theme | >100 |
| dark mode | >100 |
| full-site-editing | >100 |
| style variations | >100 |
| theme.json | #53 |
About 4WP Style Switcher
Aus der offiziellen Readme · V1.0.1Beschreibung
Demo
4WP Style Switcher reads style variations from the active block theme (theme.json and /styles/*.json).
A plugin by 4wp.dev. 4WP is our project brand; the letters “WP” appear only as part of that brand name, not as a reference to WordPress. This plugin is not affiliated with, endorsed, or sponsored by WordPress.
Source code and releases: github.com/4wpdev/4wp-style-switcher
Development
Human-readable PHP source is in the public GitHub repository above. The plugin ZIP includes src/ (PSR-4 autoload via src/Autoload.php when vendor/ is absent). No npm build step — front-end scripts ship as plain JS in assets/.
Live demo (WordPress Playground): https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/4wpdev/4wp-style-switcher/v1.0.0/.wordpress-org/assets/blueprints/blueprint.json
The demo site Style Switcher uses Twenty Twenty-Five: About, Morning, Afternoon, and Evening pages with per-page styles, A/B light vs dark, a bottom-right visitor switcher, and Light/Dark in the header and footer menus.
Page style (editor) — pick a variation for a page; optionally lock it so visitors cannot override it.
Frontend switcher — visitors choose from allowed variations; the choice is stored in localStorage and synced to a cookie for server-side rendering.
Light / Dark (navigation block) — add the Light/Dark block inside Navigation; map two variations (sun/moon icons).
A/B testing — split new visitors between two variations; daily aggregate stats monitor the traffic split.
Privatsphäre
When the visitor switcher or A/B testing is enabled, the plugin may store the selected style variation in a browser cookie (forwp_ss_style) and in localStorage on the visitor device. No personal data is sent to third-party services. A/B stats are aggregated counts stored in your WordPress database.
Blöcke
This plugin provides 1 block.
-
Light / Dark — menu toggle between two mapped theme style variations (sun/moon icons).Hooks (developers)
-
forwp_style_switcher_variations— filter theme variation list. forwp_style_switcher_ab_assigned— after A/B cohort assignment.forwp_style_switcher_analytics_track— analytics events.forwp_style_switcher_ab_assignment_enabled— filter A/B assignment.
Installation
- Upload and activate the plugin.
- Go to Settings → 4WP Style Switcher.
- On Variations, check which style variations visitors may use.
- Under General, set the default variation and optional Light/Dark mapping.
- Edit a page → Page style panel to assign or lock a variation.
- In the site editor, insert Light / Dark inside the Navigation block.
Änderungsprotokoll
Review T1: Plugin URI points to 4wp.dev; removed Playground URL constant from plugin PHP (demo link remains in readme only).
1.0.1
- Plugin URI: https://4wp.dev/ (GitHub link stays in readme Development section).
- Removed
FORWP_STYLE_SWITCHER_PLAYGROUND_URLfrom plugin PHP; no remote URLs in runtime code.
1.0.0
- First WordPress.org release (1.0.0).
- Plugin Check: inline script moved to enqueued assets; security and naming fixes.
- readme.txt: 4WP trademark disclaimer, Development, Blocks, Privacy sections.
- Playground blueprint and demo links updated for v1.0.0.
0.2.5
- Request-level caching in Style_Registry, Style_Resolver, and Style_Applicator (faster page loads).
- GitHub README banner; Playground blueprint and demo links updated for v0.2.5.
0.2.4
- Playground demo pages use theme.json variation titles (single H1 from template, slug in content).
- Morning / Afternoon / Evening / Night pages with matching per-page styles; Afternoon locked.
- Light/Dark menu toggle disabled when page style switching is locked.
0.2.3
- Per-page style meta, A/B light vs dark, visitor switcher bottom-right, two locked demo pages.
- Shared navigation in header and footer template parts.
- Fix Documentation tab accordion spacing in admin.
0.2.2
- Apply visitor style from the query param on the same request (no redirect; works in Playground iframe).
- Clean the style query param from the URL after the page loads.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best 4WP Style Switcher alternatives
All block-theme plugins →Fragen und Antworten
4WP Style Switcher: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is 4WP Style Switcher free?
Yes. 4WP Style Switcher is free to download and use from the official WordPress.org plugin directory.
Is 4WP Style Switcher safe to use in 2026?
4WP Style Switcher works, but test it on a staging site before relying on it in 2026. Was last updated 6 months ago, and scores 49/100 on our health check.
How many websites use 4WP Style Switcher?
4WP Style Switcher is active on <10 WordPress websites and has been downloaded 482 times since it launched in June 2026. It was downloaded 70 times in the last 30 days.
Does 4WP Style Switcher work with WordPress 7.1?
4WP Style Switcher is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does 4WP Style Switcher need?
4WP Style Switcher requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was 4WP Style Switcher last updated?
The latest version, 1.0.1, was released on June 14, 2026 (6 months ago).
Who makes 4WP Style Switcher?
4WP Style Switcher is developed and maintained by 4WP.dev.
What are the best alternatives to 4WP Style Switcher?
The most popular alternatives to 4WP Style Switcher are Create Block Theme (20K+ installs), Dynamic Header & Navigation… (200+ installs) and Enable bbPress for Block Th… (200+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte








