• Really need someone’s help.

    I was trying to remove a comment form, and I inserted some code into my Functions.php page and I have been blocked completely out of my site.

    Cant even access Wp-admin, or my normal domain.

    I inserted the following code:

    // Removes from post and pages
    add_action(‘init’, ‘remove_comment_support’, 100);

    function remove_comment_support() {
    remove_post_type_support( ‘post’, ‘comments’ );
    remove_post_type_support( ‘page’, ‘comments’ );
    }

    Near the top of the page, and my entire page has disapeared!
    Please help!

Viewing 1 replies (of 1 total)
  • Bill

    (@chubbycrow)

    If you have a backup of that file, you’re going to want to replace the edited one with the backup copy (or a fresh, unedited one if no backup is available). You can use an FTP client (like FileZilla), or your web-host’s cPanel or file manager to do this.

Viewing 1 replies (of 1 total)
  • The topic ‘Functions issue’ is closed to new replies.