• I have tyhe followign code in my theme:

    <?php AWM_generate_linking_code(); ?>

    However, I only want this to show up if a certain plugin is installed.

    How would I code this?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php if( is_plugin_active('plugin_folder/plugin_filename') ) AWM_generate_linking_code();?>

    Thread Starter HorrorUK

    (@horroruk)

    Thanks for that.

    There still seems to be a problem though, as it doesn’t seem to be reading the section that says:

    AWM_generate_linking_code();

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

The topic ‘How to only show certain code if a plugin is installed?’ is closed to new replies.