FOUND IT! Completely different thing than what I was looking at.
Okay, so, I’m assuming what you did was, download the plugin, activate, then went to the front of your site, right? E.g. you didn’t set what type of alert you wanted, you just went on about your business. The plugin loads the javascript relative to your selection on the admin page, like this:
function idl_signal_all_the_cats() {
$options = get_option( 'cat_signal' );
if ( !is_admin() ) {
if ( $options['type'] == 'banner' ) {
wp_enqueue_script( 'idf-banner', CAT_SIGNAL_PLUGIN_URL . 'js/banner.js', array(), '1.0', false );
} elseif ( $options['type'] == 'modal' ) {
wp_enqueue_script( 'idf-modal', CAT_SIGNAL_PLUGIN_URL . 'js/modal.js', array(), '1.0', false );
} else {
die();
}
}
}
The problem was that die()
command which fires if there’s no option set. I’ve fixed it and it will be live shortly.