• jimtomas

    (@jimtomas)


    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)
  • 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.