WordPress.org

Ready to get started?Download WordPress

Forums

How to switch Theme via code (2 posts)

  1. exportquality
    Member
    Posted 3 years ago #

    There is a way to switch themes via code with no plugins?

    I have 2 templates for different languages and i would to know if there is a way to add a link to switch between templates.

    Thank you!

  2. Tom Lynch
    Member
    Posted 2 years ago #

    switch_theme($template, $stylesheet);

    http://codex.wordpress.org/Function_Reference/switch_theme

Topic Closed

This topic has been closed to new replies.

About this Topic