使插件仅在一个特定页面或页面模板上工作

I've installed welcome message for wordpress.It is like a text or image on the intro which is fading out after some seconds automatically and it has no option to set it only on a main page or other pages. I'm interesed in how make the plugin not working on all pages, except one(maybe functions.php) . Will be happy for every answer.THANKS!!!

https://wordpress.org/plugins/welcome/

   function welcome_output (){
    global $wDefaults;
    $wVar = welcome_getOptions();

    if($_COOKIE[$wDefaults['welcome_cookie_name']] == '1') return;

    echo '<div id="cover" style="background-color: ' .$wVar['welcome_color']. ';height:100%;width:100%; position:fixed;z-index:2147483646; top: 0; margin: 0 auto; left:0;">' . $wVar['welcome_content'] . '</div><noscript><style>#cover{ display: none; visibility: hidden; height: 0px; width: 0px; }</style></noscript>';

    /* JS generation, mess */
    echo '<script> 
    jQuery(document).ready(function($){';
    if($wVar['welcome_cookie_duration'] > 0) 
        echo 'if(jQuery.cookie("'.$wDefaults['welcome_cookie_name'].'")=="1") return;';
    echo 'setTimeout(function() { jQuery("#cover").fadeOut('. ($wVar['welcome_sec_fade_out'] * 1000) .'); }, '. ($wVar['welcome_sec_after'] * 1000) .');

            jQuery.cookie("'.$wDefaults['welcome_cookie_name'] .'", "1", { expires: '. $wVar['welcome_cookie_duration']  .' });
    }); </script>';

    wp_enqueue_script('jquery');
    wp_enqueue_script( 'jquery-cookie', plugins_url('/jquery.cookie.js', __FILE__ ), array( 'jquery' ), '1.4.1', false );
}

You can use the Wordpress function is_home().

https://codex.wordpress.org/Function_Reference/is_home

If you want another page and not index. You can use is_page($pageid)

https://codex.wordpress.org/Function_Reference/is_page

you can do it by using the following code.

if (is_page('page-name')){
  // you code here
}