Support » Plugins » [Plugin:milat jquery automatic popup] Disable everywhere but Homepage

  • Hi,

    I’m using milat-jquery-automatic-popup. It’s pretty good, but a problem I’m having is that I cannot control what pages the popup appears on. Ideally I would like the popup to only appear on the homepage. As is it appears any time any page is loaded.

    I found a snippet that is supposed to disable it on all pages except the home page, but it is having no effect. Here it is, in case I have made a mistake with it:

    add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 );
    function my_deregister_javascript() {
    if ( !is_page(‘Welcome to Tempted’) ) {
    wp_deregister_script( ‘milat-jquery-automatic-popup’ );

    Any help with this would be greatly appreciated, as it kind of has me stumped.

  • The topic ‘[Plugin:milat jquery automatic popup] Disable everywhere but Homepage’ is closed to new replies.