Title: Overwrite of PHP
Last modified: August 24, 2016

---

# Overwrite of PHP

 *  Resolved [andrew90](https://wordpress.org/support/users/andrew90/)
 * (@andrew90)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-of-php/)
 * I think I may have just deleted all the code in my header.php file on accident.
   Should I do a new reinstall of the theme virtue? I do have my site backed up.
 * [http://borderlandexpeditions.com](http://borderlandexpeditions.com)

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

 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-of-php/#post-6066509)
 * Are you using a child theme? If so you can restore the files from the parent 
   theme. You can also try contacting your host and seeing if they have a backup.
   Otherwise you can re-install the theme and transfer your theme options. You would
   follow the “free to premium” section of this tutorial- [http://www.kadencethemes.com/installing-virtue-premium/](http://www.kadencethemes.com/installing-virtue-premium/)
 * Hannah
 *  Thread Starter [andrew90](https://wordpress.org/support/users/andrew90/)
 * (@andrew90)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-of-php/#post-6066523)
 * Thanks for the quick reply. I’m trying to restore files using Cpanel. If that
   doesn’t work I can just do a fresh install and paste my theme options in. How
   would you restore from the parent theme?
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-of-php/#post-6066607)
 * Hey, Just so you know you can see all of the header file here: [https://themes.svn.wordpress.org/virtue/2.4.7/templates/header.php](https://themes.svn.wordpress.org/virtue/2.4.7/templates/header.php)
 * You can also remove the theme and then reinstall it. The theme options are saved
   in the database so you won’t lose them.
 * Kadence Themes
 *  Thread Starter [andrew90](https://wordpress.org/support/users/andrew90/)
 * (@andrew90)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-of-php/#post-6066610)
 * Can I just copy and paste the header file you just posted into the header.php
   file on my server?
    I have a backup from a wordpress plugin but its not to recent.
   I’m worried if I do a reinstall that I might lose some of my content.
 *  Thread Starter [andrew90](https://wordpress.org/support/users/andrew90/)
 * (@andrew90)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-of-php/#post-6066611)
 * Looks like its back up now. It must have restored from the backup I had using
   my host’s server side software. Problem solved! Thanks so much.

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

The topic ‘Overwrite of PHP’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [andrew90](https://wordpress.org/support/users/andrew90/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/overwrite-of-php/#post-6066611)
 * Status: resolved