Title: Conditional code
Last modified: August 18, 2016

---

# Conditional code

 *  Resolved [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * (@brianbonner)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/conditional-code-1/)
 * I tried searching, and I know it is somewhere, but what is the if code you wrap
   php in so that if you turn off a plugin it doesn’t break the layout?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/conditional-code-1/#post-392646)
 * My theme switcher is in this:
    `<?php if (function_exists('wp_theme_switcher')){?
   > <li><h2><?php _e('Themes'); ?></h2> <?php wp_theme_switcher(); ?> </li> <?php}?
   >
 * Apply it “creatively 🙂
 *  Thread Starter [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * (@brianbonner)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/conditional-code-1/#post-392785)
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conditional code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/conditional-code-1/#post-392785)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
