• Resolved DavidJWall

    (@davidjwall)


    As the topic title reads, while trying to add a little functionality to a friends site I entirely broke it. No access to admin. Site is down. The only thing I did was try to add a function to the child themes functions.php file in the theme editor of WP Admin. Clearly the site didn’t like what I added as it’s down.

    After doing some reading it seems the correct course of action is to access the site from the host FTP.

    So once I get the username and password to do this, do I just find the functions.php and restore it to the original code? I have the original code saved in my text editor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes. The file is in wp-content/themes/yourtheme

    And that’s why we NEVER should use appearance->editor to edit anything. ??

    Thread Starter DavidJWall

    (@davidjwall)

    Thanks for your reply. Much appreciated. Hopefully that’s all it takes. In the future, if I’d like to add a function to the functions.php file should I do it via ftp to begin with? Either way I would have ended up with a broken site…right? Since the code clearly wasn’t right.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    My process is always

    Download functions.php
    Copy functions.php to functions.save
    Edit functions.php
    Upload functions.php

    Works? Beer time.

    Doesn’t work?
    rename functions.php functions.bad
    copy function.save functions.php; upload functions.php
    study functions.bad to see what I borked.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘no access to admin after changing child theme function.php’ is closed to new replies.