Title: Deleted footer.php code
Last modified: January 22, 2019

---

# Deleted footer.php code

 *  [bonsun18](https://wordpress.org/support/users/bonsun18/)
 * (@bonsun18)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/deleted-footer-php-code-2/)
 * Hi,
    I have accidentally deleted my entire footer.php code for Sydney 1.53 theme
   🙁 I have tried copying and pasting this footer code (from another website forum
   of someone who did the same thing) and it is not working when I click update 
   it comes up with the message ‘Unable to communicate back with site to check for
   fatal errors, so the PHP change was reverted. You will need to upload your PHP
   file change by some other means, such as by using SFTP’ which I do not understand
   at all…
 * Could someone please pate the footer.php for Sydney theme 1.53 here I am wondering
   if what I have doesn’t work when I past it because it is from an earlier ‘version’
   of the theme.
 * Any help would be incredibly appreciated this is my first website, I don’t have
   it backed up and now the pages are not loading at all.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeleted-footer-php-code-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 4 months ago](https://wordpress.org/support/topic/deleted-footer-php-code-2/#post-11119149)
 * Don’t do it that way. Don’t just blindly paste code.
 * Download a fresh copy of Sydney. Extract footer.php from the .zip file. Upload
   it via FTP o ryour hosting control panel.
 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/deleted-footer-php-code-2/#post-11119202)
 * Why don’t you just login to your dashboard… install a backup plugin and make 
   a backup of what you have… files and database, please.
 * Now go into themes and install a simple theme or switch to a different theme 
   if you still have one available.
 * Delete your Sydney theme or save a copy of it if you wish via FTP (or your Control
   Panel’s File Manager, or else SFTP) then delete your Sydney Theme. If you made
   changes to the theme files themselves you might want to copy those changed files
   back but read the rest of this for a better idea.
 * Now that Sydney is gone you’ll want to reinstall Sydney. You’ll probably use 
   the theme installer built into WordPress but here’s the link if you want to manually
   install it again. [https://wordpress.org/themes/sydney/](https://wordpress.org/themes/sydney/)
 * Once you activate the Sydney theme again you’ll probably have back what you had
   before as the deactivation normally leaves everything in the settings somewhat
   intact.
 * If you want to make further changes to Sydney in the future use this plugin to
   create a child theme based on Sydney and make your changes there. [https://wordpress.org/plugins/child-theme-generator/](https://wordpress.org/plugins/child-theme-generator/).
 * Creating the Child Theme protects your parent theme while allowing updates to
   that theme. And you won’t wipe out your hard work done in the Child Theme. If
   you made other changes to the Sydney theme files before this fix you can usually
   copy those to your Child Theme also.
 * If you later break the child you can switch back to the parent then delete your
   child theme, repair it at your leisure, or copy a working backup back to your
   child then reactivate the child theme.
 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/deleted-footer-php-code-2/#post-11119282)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) makes a great point
   too when he advises you to, “Don’t do it that way. Don’t just blindly paste code”.
 * Even someone with the best intentions could cause you many headaches!
 * Consider this… many of my themes were installed and then the headers and footers
   were ‘munged’ with redirect or refresh codes in the headers and my boilerplate‘
   horn blowing’ and advertising added to the footers. And then there are scripts
   stuffed into those, too. Done in the name of expediency then forgotten.
 * Later on, I probably did a child theme but if the parent never had another update
   then you’re probably going to get my ‘wonderful’ unexpected changes if I was 
   to then share my headers or footers. No, you sure don’t want that.
 * Might be good for me though!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Deleted footer.php code’ is closed to new replies.

## Tags

 * [footer.php](https://wordpress.org/support/topic-tag/footer-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/deleted-footer-php-code-2/#post-11119282)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
