WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding function.php tp child theme breaks the entire site! (6 posts)

  1. FractalKitty
    Member
    Posted 1 year ago #

    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!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Is your child's functions.php file empty?

  3. FractalKitty
    Member
    Posted 1 year ago #

    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.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  5. FractalKitty
    Member
    Posted 1 year ago #

    Ok! Will try that now. Thank you!

  6. FractalKitty
    Member
    Posted 1 year ago #

    Awesome! That worked! Thanks a lot! :)

Topic Closed

This topic has been closed to new replies.

About this Topic