The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Free

4WP Style Switcher

4WP Style Switcher banner
Last updated
6 months ago
Version
1.0.1
Tested up to
WP 7.0.9

About this plugin

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.

Privacy

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.

Blocks

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.

Screenshots

Analytics

Live from WordPress.org, refreshed daily. Last refresh Nov 30, 2026.

  • Passes every health check below.
3/3

Health checks

Everything a careful site owner looks at before installing.

  • Actively maintained Last release 6 months ago
  • Tested with current WordPress Tested up to 7.0.9
  • Support questions answered Nothing open in the last two months
  • Well rated No ratings yet
Active installs
Fewer than 10 WordPress.org rounds this down
This week
16 downloads −20% vs the week before
Last 30 days
69 downloads 2 a day, typically
All time
482 downloads On WordPress.org since 2026
Downloads per week Every update counts as a download on WordPress.org, so release weeks spike.
Latest week
16
Typical week
14
Peak
55 Week of Jun 15
View as table
WeekDownloads
Week of Nov 2316
Week of Nov 1620
Week of Nov 912
Week of Nov 217
Week of Oct 2617
Week of Oct 1912
Week of Oct 1215
Week of Oct 513
Week of Sep 2820
Week of Sep 2111
Week of Sep 1413
Week of Sep 711
Week of Aug 3118
Week of Aug 246
Week of Aug 1721
Week of Aug 1011
Week of Aug 314
Week of Jul 2711
Week of Jul 209
Week of Jul 1314
Week of Jul 614
Week of Jun 2921
Week of Jun 2215
Week of Jun 1555
Where it stands Rank among the plugins WPFolks tracks every day.

Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.

Active installs over time Recorded by WPFolks every day since Oct 14, 2026.

Reviews

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Proudly supported by