Title: How deactivate theme from template code
Last modified: August 22, 2016

---

# How deactivate theme from template code

 *  [osflake](https://wordpress.org/support/users/osflake/)
 * (@osflake)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/how-deactivate-theme-from-template-code/)
 * Hi Everyone,
 * I want to ask You, how can I deactivate themes if some plugins not installed?
 * ex.
 *     ```
       if (is_plugin_inactive('simple-fields/simple_fields.php')) {
         //some code to deacticate theme 'MyTheme'
       }
       ```
   
 * Anybody know?
 * Thanks a lot,
    Arek

The topic ‘How deactivate theme from template code’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [osflake](https://wordpress.org/support/users/osflake/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/how-deactivate-theme-from-template-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
