Title: no access to admin after changing child theme function.php
Last modified: September 1, 2016

---

# no access to admin after changing child theme function.php

 *  Resolved [DavidJWall](https://wordpress.org/support/users/davidjwall/)
 * (@davidjwall)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/no-access-to-admin-after-changing-child-theme-functionphp/)
 * 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)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 11 months ago](https://wordpress.org/support/topic/no-access-to-admin-after-changing-child-theme-functionphp/#post-7562211)
 * 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](https://wordpress.org/support/users/davidjwall/)
 * (@davidjwall)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/no-access-to-admin-after-changing-child-theme-functionphp/#post-7562216)
 * 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)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 11 months ago](https://wordpress.org/support/topic/no-access-to-admin-after-changing-child-theme-functionphp/#post-7562227)
 * 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.

## Tags

 * [broken site](https://wordpress.org/support/topic-tag/broken-site/)
 * [no access to admin](https://wordpress.org/support/topic-tag/no-access-to-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/no-access-to-admin-after-changing-child-theme-functionphp/#post-7562227)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
