• I would like to get the scroll popup to only show on one post, and no where else on the site. How can I do this?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marin Matosevic

    (@marinmatosevic)

    Hi,

    put this code in your functions.php file. Replace “name-of-your-post” with actual name of your post or post ID.

    add_action( 'wp_print_scripts', 'spb_disable_popup', 100 );
    function spb_disable_popup() {
        if ( !is_single('name-of-your-post') ) {
            wp_deregister_script( 'popup-script' );
        }
     }

    best regards,
    Marin

    Thread Starter hughjiang

    (@hughjiang)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I get a scroll popup to only show on one post?’ is closed to new replies.