WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Conditional code (3 posts)

  1. brianbonner
    Member
    Posted 8 years ago #

    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!

  2. moshu
    Member
    Posted 8 years ago #

    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 :)

  3. brianbonner
    Member
    Posted 8 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.