Title: Simple theme switch with parameters
Last modified: August 19, 2016

---

# Simple theme switch with parameters

 *  [jimtomas](https://wordpress.org/support/users/jimtomas/)
 * (@jimtomas)
 * [17 years ago](https://wordpress.org/support/topic/simple-theme-switch-with-parameters/)
 * I’m trying to switch my theme to support a cobranded advertiser. I’ve created
   a plugin that seems to accept my parameter but I can’t get the theme to switch.
 * Without boring you with the entire code, the important bits are:
    (if my parameter
   is detected or the cookie is set then…)
 *     ```
       add_filter('template','change_template');
   
       function change_template($template = '') {
       	$template = '123cobrand';
       	return $template;
       }
       ```
   
 * What am I missing?

Viewing 1 replies (of 1 total)

 *  [mellur](https://wordpress.org/support/users/mellur/)
 * (@mellur)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/simple-theme-switch-with-parameters/#post-1084637)
 * I just installed WordPress to my website. I added a folder with a theme of WordPress’s.
   However, when I want to switch to the theme, I cannot even figure out how to 
   get to the Administration panel. How can i get to the admin panel?

Viewing 1 replies (of 1 total)

The topic ‘Simple theme switch with parameters’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [mellur](https://wordpress.org/support/users/mellur/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/simple-theme-switch-with-parameters/#post-1084637)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
