Adds WordPress toolbar menu that allows users to switch theme for themselves.

Overview

Toolbar Theme Switcher — for WordPress

Scrutinizer Code Quality

Plugin provides toolbar (admin bar) menu to quickly switch between available themes.

Theme choice is individual for user, saved in cookies and doesn't affect current theme of the site.

Plugin is multisite-aware — it will only list themes allowed for site and save choice for each site separately.

Installation

Download plugin archive from releases section.

Or install in plugin directory via Composer:

composer create-project rarst/toolbar-theme-switcher --no-dev

Frequently Asked Questions

I switched to a broken theme!

You can reset via special URL parameter example.com?tts_reset or by clearing browser’s cookies for the site.

I don't want all themes to show...

Filter tts_allowed_themes and unset unwanted themes.

Example code (removes Twenty Ten theme from the list):

add_filter( 'tts_allowed_themes', 'hide_twenty_ten' );

function hide_twenty_ten( $themes ) {

	unset( $themes['Twenty Ten'] );

	return $themes;
}

Who can see and use the menu?

Users with switch_themes capability (administrators by default).

Filter tts_capability (capability name) or tts_can_switch_themes (boolean) to customize.

I don't want theme name in toolbar? | I want something else in toolbar?

Filter tts_root_title to control what it says.

I have a lot of themes and it's becoming sluggish...

Plugin needs to build full list of available themes, which isn't typically needed on each page load and can be relatively slow with a lot of disk access.

When using Object Cache, caching theme data in WordPress can be enabled via:

add_filter( 'wp_cache_themes_persistently', '__return_true' );

Since it doesn't handle invalidation (will need to wait or flush cache when themes are added/removed), plugin isn't enabling it and leaves choice up to the user.

You might also like...
WordPress Framework based on parent theme

Cherry Framework The most delicious WordPress framework Fully responsive design, easy install, steady updates, great number of shortcodes and widgets,

A WordPress theme switcher for developers
A WordPress theme switcher for developers

WP Theme Switcher To help you build or preview a new theme directly on your site without affecting your visitors (they always see the default theme wh

Custom WordPress theme for DotOrg

wd_s Debt Collective Theme Table of Contents Introduction Getting Started Prerequisites Quick Start Advanced Setup Development Contributing and Suppor

Sakura🌸: A Wonderful WordPress Theme
Sakura🌸: A Wonderful WordPress Theme

Sakura🌸: A Wonderful WordPress Theme

The WordPress theme powered by the Laravel Framework.

Laravel in WordPress Theme Laravel is a web application framework with expressive, elegant syntax. It's one of the most popular PHP frameworks today.

The most powerful all in one, SEO-friendly theme for WordPress.

Help us Become a backer via Patreon. Make one time donation with PayPal. About Seven SERP Theme Seven SERP Theme is an open source WordPress theme. Wi

Création du thème "mytheme" WordPress from Scratch

!DOCTYPE html html lang="fr" head meta name="viewport" content="width=device-width" / meta http-equiv="Content-Type" content="text/html;

A WordPress theme I developed for metamaxlab.com website.

=== metamaxlab === A WordPress theme I developed for metamaxlab.com website. This theme has compatibility with Bootstrap 5.1, Font Awesome, and Jetp

Advanced Import : One Click Import for WordPress or Theme Demo Data

Advanced Import is a very flexible plugin which convenient user to import site data( posts, page, media and even widget and customizer option ).

Comments
  • Add a visual

    Add a visual "▸ Current Theme" indicator, add included files node

    $current == $theme had to be replaced, because using it more than once returned inconsistent values.

    'title' => ( $current == $theme ? '▸ ' : '' ) returns false, while the same comparison for href would always return true.

    opened by lkraav 2
  • Reset for broken theme case

    Reset for broken theme case

    Clearing cookies for getting out of broken theme isn't too convenient.

    Should be easier way to do it, currently thinking providing reset URL like example.com?tts_reset.

    enhancement 
    opened by Rarst 0
Owner
Andrey Savchenko
I believe in a Web of content sites that are a delight to discover, read, and navigate.
Andrey Savchenko
A custom WordPress nav walker class to fully implement the Twitter Bootstrap 4.0+ navigation style (v3-branch available for Bootstrap 3) in a custom theme using the WordPress built in menu manager.

WP Bootstrap Navwalker This code in the main repo branch is undergoing a big shakeup to bring it in line with recent standards and to merge and test t

WP Bootstrap 3.3k Jan 5, 2023
Wordless is a junction between a WordPress plugin and a theme boilerplate that dramatically speeds up and enhances your custom theme creation

Wordless is a junction between a WordPress plugin and a theme boilerplate that dramatically speeds up and enhances your custom theme creation. Some of

weLaika 1.4k Dec 9, 2022
Adds a dashboard widget that allows admins to quickly open the edit screen for any WordPress post type- including orders, products, and subscriptions.

Quick Open Dashboard Widget Requires PHP: 7.0 WP requires at least: 5.7 WP tested up to: 5.7 WC requires at least: 5.6.0 WC tested up to: 5.8.0 Stable

Universal Yums 4 Nov 11, 2021
WordPress plugin that allows admin to force logout all users

User Login Control User Login Control is a WordPress plugin allows you to logout user(s) from their account or to see the last activity of your offlin

null 4 Sep 6, 2022
A curated list of Awesome WordPress Theme, Plugins and Framework development Resources and WordPress Communities.

Awesome WordPress A curated list of Awesome WordPress Theme, Plugins and Framework development Resources and WordPress Communities. Inspired by bayand

Dropndot Limited 91 Dec 26, 2022
Twenty Twenty-Two, the default WordPress theme that will launch with WordPress 5.9.

Twenty Twenty-Two Welcome to the development repository for the default theme that will launch with WordPress 5.9. About Twenty Twenty-Two is designed

null 414 Nov 28, 2022
The Pronamic WordPress Basecone plugin allows you to connect your WordPress installation to Basecone.

Pronamic WordPress Basecone The Pronamic WordPress Basecone plugin allows you to connect your WordPress installation to Basecone. Table of contents Au

Pronamic 1 Oct 19, 2021
Laravel Blog Package. Easiest way to add a blog to your Laravel website. A package which adds wordpress functionality to your website and is compatible with laravel 8.

Laravel Blog Have you worked with Wordpress? Developers call this package wordpress-like laravel blog. Contact us for any customization: contact@binsh

Binshops 279 Dec 28, 2022
Simple Wordpress plugin that adds social share buttons

Super Fast Social Share Simple Wordpress plugin that adds social share buttons to Wordpress posts. ?? Screenshots You can either load the default css

Matthew Kiggen 2 Nov 8, 2021
Adds a beautiful WhatsApp Sticky Button on the WordPress frontend

Adds a beautiful WhatsApp Sticky Button on the WordPress frontend

Rasoul Mousavian 8 Dec 22, 2022