• Resolved brianbonner

    (@brianbonner)


    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

    (@moshu)

    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

    (@brianbonner)

    Thanks!

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

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