• hello, I am a wordpress newbie, I would a plugin or even a small script that once someone leaves a comment displays a small “thank you” or “comment added” popup that closes automatically after few seconds. Around unfortunately I only found plugins that redirect to a page after a comment… I found a script that makes the page go to the beginning of the post (to be included in “functions.php”) after a comment:

    add_filter(‘comment_post_redirect’, ‘redirect_after_comment’);
    function redirect_after_comment($location)
    {
    return $_SERVER[“HTTP_REFERER”];
    }

    So in the end I need this:

    add_filter(‘comment_post_redirect’, ‘redirect_after_comment’);
    function redirect_after_comment($location)
    {

    POPUP(“THANK YOU FOR THE COMMENT!”,2500); < 2500 (2.5 secs) should be the closing time of popup >

    return $_SERVER[“HTTP_REFERER”];
    }

    something like this in the link

    thank you and sorry for my poor english 🙂

  • The topic ‘thankyou popup after message’ is closed to new replies.