• I just downloaded a very good and complex theme and now I want to use it for a specific category. How can I do this without manipulating all the new theme?

    I am looking for some function to use in my category-4.php in this way:

    get_new_theme(‘my_new_theme_name’);
    ….

    does it exists?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter correodefelipe

    (@correodefelipe)

    Hi Viper,

    I’ve read this allready a thousand times tough but I believe that’s not the answer.

    Suppose you are using your default theme, but you want for your index.php?cat=4 page to use the classic theme that is in another folder in your themes directory. Then? how can you do that?

    By using the link I gave you.

    You make a copy of it of the classic category.php, move it and any needed images/styles to your defualt theme folder, and then go from there by renaming it to category-X.php, etc.

    Now of course you could probably do what you originally talked about via a plugin, but it’d require a fair amount of PHP to pull off. The Theme Switcher plugin would be a good place to start. Something like

    if (is_category('blah')) {
    /*
    Something based off Theme Switcher here, minus the cookie part
    */
    }

    would probably work.

    Thread Starter correodefelipe

    (@correodefelipe)

    Thanks,

    I’ve done it with the Theme Switcher, but now how can I modify it to make the new theme selected by default?

    thanks again.

    That’s where the is_category('blah') part comes into play.

    If it’s that category, then use the code from Theme Switcher that applies the theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘using a theme for a specific category’ is closed to new replies.