WordPress.org

Support

Support » Themes and Templates » [Resolved] Adding function.php tp child theme breaks the entire site!

[Resolved] Adding function.php tp child theme breaks the entire site!

  • Hi!

    I am new to WP and have been progressing pretty nicely in the past week but I am stuck now. I am working in Twenty Eleven Child theme. I need to tweak the functions.php but when I add the file through the FTP client (FileZilla), the entire site breaks. Google error reads site is offline! How can I fix this? Any guidance would be much appreciated.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    Is your child’s functions.php file empty?

    Well the only way I know how to create a new file in FileZilla is to copy an old one & rename. In this case I copied the content.php, renamed, and deleted its contents but them the site went offline immediately after that. I’ve tried copying the entire functions.php over to child theme but that also breaks the site.

    esmi

    @esmi

    Forum Moderator

    No. You must create a new text file in a plain text editor with just <?php at the top, save it as functions.php and upload it to your child theme.

    Ok! Will try that now. Thank you!

    Awesome! That worked! Thanks a lot! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Adding function.php tp child theme breaks the entire site!’ is closed to new replies.
Skip to toolbar