Support » Fixing WordPress » Edited functions.php, now site is blank

Viewing 4 replies - 1 through 4 (of 4 total)
  • That’s a very long file. Can you please narrow it down to what you edited specifically? Do you also have a backup of your functions.php file you can compare to the edited version?

    Moderator Mark Ratledge


    Forum Moderator

    @raees: There’s no way anyone here can parse that file for errors.

    Use FTP to replace the file with a fresh, unedited copy of functions.php and then keep backup copies of the files you work on.

    See Filezilla and FTP Clients « WordPress Codex. Or use your web host’s file manager in your control panel.

    ok, the problem is I tried adding this snippet at the end of the functions.php and the site went blank, removing it fixes the problem, but I want to use that snippet.

    Hi Raees,
    Pasting other code without proper information – how it work and how it will affect your website. Is not considered as good coding practice.

    If you want to add that code in your website. I suggest you that you should create a file and an includes folder in your theme directory. Then, parse that include file from there. Using this way, you will have your website intact.

    require_once ( get_stylesheet_directory() . '/includes/');

    And, please go to forum, and start a new thread for support. We can help you with WordPress only. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edited functions.php, now site is blank’ is closed to new replies.