Forums

Hard cosding Theme Change (1 post)

  1. Jonathan Bishop
    Member
    Posted 9 months ago #

    I'm trying to automatically change the theme on my site based on the value of a variable.
    I tried inserting the following into the template-loader.php file:

    if ($coun == 1) {

    $template = "starsandstripes";

    }

    This is before this code:

    if ( $template = apply_filters( 'template_include', $template ) )
    include( $template );
    return;

    Does anyone know what I'm doing wrong and/or have a link to the solution?

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 9 months ago by Jonathan Bishop
  • This topic is not resolved
  • WordPress version: 3.2.1