• Hello there,

    I’m pretty new to wordpress so I’m messing around with the code a little.

    What I’m currently trying to do at the moment is disabling the comment redirection.

    For example: After I enter my comment in the comment form and pressing the ‘Submit’ button. It refreshes the page completely and then brings me to my comment.

    I want to completely disable that.

    At the moment the closest ive been to is putting this code in the functions.php

    <?php
    add_filter('comment_post_redirect', 'redirect_after_comment');
    function redirect_after_comment($location)
    {
    
    return $_SERVER["HTTP_REFERER"];
    }

    But it is still reloading the page which I do not want.

    Can anyone help me out please :)?

Viewing 1 replies (of 1 total)
  • Thread Starter Berg25

    (@berg25)

    I have found some plugins that do this.

    -Disqus and livefyre.

    When posting a comment the page does not reload and the comment is posted.

    This is something I would like to do. Anyone have any ideas?

Viewing 1 replies (of 1 total)
  • The topic ‘Disable comment redirection’ is closed to new replies.