Skip to content

Finalmarco/wordpress-switch-theme-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Plugin Features

  • Switch theme live to one ore more users (unaffecting the others)
  • Switch theme for a single page passing a get variable (?themeprev=1)
  • Compatibility with themes that use get_template_directory() and get_template_directory_uri()
  • No database interaction (wp_option)

Note

This plugin is intended for developers and tester, is not supposed to run on a production environment tested on Wp 5.9 Click here for more information about this plugn

Configuration

File includes/motore.php edit the following lines

<?php
    //Configuration
public $user_diff_theme = [10710,10711]; //User ID who to change theme
public $force_var = TRUE; //if true you can force a page with the new theme using ?themeprev=1 (any user)
private $new_theme = 'understrap'; //New theme
private $new_theme_child = 'understrap-child'; //new theme child
//end config	
?>

About

Sometimes, for testing purpose, we need a way to switch our theme on the run for a single page or for specific users, keeping the main theme for the others.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages