• Resolved beachgirl

    (@beachgirl)


    I am looking at doing the hard work to make blogs available to all my family members. I want to have plug-ins available to all of them. But not everyone is going to want the same plug ins. So I thought I should be able to install them, and just code the sidebar with an if statement. So if that plug in is activated then use it. If it’s not, then skip this code. But I can’t figure out the write php code to do that. Anyone much wiser than I willing to help me out?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • <li id="whatever you want to call it">
    <?php if (function_exists('whatever the plugin is named')) : ?>
    <ul> <?php WeatherIcon('KCDC'); ?>
    </ul>
    <?php endif; ?>
    </li>

    This seems to be pretty standard for most of my sidebars with plugin functions. Just replace the li id and the plugin name (inside the single quotes).

    Thread Starter beachgirl

    (@beachgirl)

    Cool, thanks so much! I’m off to try it out!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with an “if” statement please!’ is closed to new replies.