Chuyển đến nội dung chính

Missing or Deleted Header.php, Functions.php, Footer.php and other .php Theme Files

Recently I was working on one of my new websites and wanted to add Adsense Code in my sites header.php (so that it could be reviewed and approved for monetization). Suddenly, all my header.php scrip got deleted and my website was nothing more than a boring text page like.

php header deleted - Tech Urdu 
header.php

The header.php of my site got deleted completely. Though I solved my problem yet I wanted to share my methods with you so that you can get through such a problem without any worries.

Keep it in mind these methods work for Missing or Deleted Header.php, Functions.php, Footer.php, Comments.php and other .php files.

Scroll Down for detailed instruction Video

Missing or Deleted Header.php, Functions.php, Footer.php and other .php Theme Files

Working on a website, blog especially working with a WordPress site, you at times come across with .php files. Now if you don't know/understand coding (HTML, CSS, Java, etc), then it becomes really problematic to solve missing/deleted .php files problem.

Also Read: How to Trace Mobile Number Exact Location?

Here I have discussed three methods using these you can get over such a coding problem. Remember, Developers charge for such works on your website. So, why not learn these easy steps and do it yourself.

Changing the Theme Completely

Well, since your current theme .php files got deleted, it becomes really hard to get those right (if you don't know to code). Then there is a very simple method - just install and activate a new theme.

add new wordpress theme - Tech Urdu

Remember, once you install the new theme you need to make all setting from the beginning to match the layout of the new theme.

By Copying .php Code from another Similar Theme

Now this one is very interesting. If you use the same theme for two different websites, then copy the .php file of the one and paste it into the deleted files. This method is not a sure solution as in some cases very few coding is needed to match the new site.

php theme - Tech Urdu header.php of the theme

So if you know some basics of php then this method will work for you. The advantage of this method is that you will get your current theme back - no need to install any new themes.

By Installing a new Fresh 'Same' Theme

If you want to get your current favorite theme at all costs (and don't want to try a new theme and don't know the even basics of coding), then you this one is for you.

All you need to do activate any theme available and delete the theme you want to apply for your website. Once deleted, re-install the theme by any method. Activate it and bingo you got it back. Now just make some customizations and you are good to go.


Read Next: Top 10 Most Sold Phones of All Time.

Let me know in comments below which method works/worked for you. Add any other method you think is easy to do.

Nhận xét

Popular Posts

Episode 111 - Keys to the Kingdom

It’s Tuesday August 31st, 2010 and welcome to episode 111 of TechTalk4Teachers, I’m Tom Grissom. We’re Back! It is back-to-school time here at EIU and we have survived the first full week. Schools across America are going through the annual ritual of back-to-school activities as students once again enter classrooms. Faculty are going over their syllabi with students. Whether you are at a K-12 school or at a college or university you are most likely faced with another ritual of obtaining userid(s) and password(s) for the new school year. Right Click Here to Download MP3 (30 minutes 23 seconds) Userids and passwords are literally the keys to the kingdom when it comes to accessing electronic resources. Your userid and password is the only thing that stands between you and the often sensitive and confidential information available electronically. It seems like one of the simplest of things to deal with but because of the importance of userids and passwords I thought it would be valuable t...

Episode 212 - Summer PD - FSI 2018

05/30/2018 It’s Wednesday, May 30th, 2018 and welcome to Episode 212 of TechTalk4Teachers, I’m Tom Grissom, I'm Newton Key, and I'm Sace Elder. Welcome to TechTalk4Teachers the show about teaching and learning with technology .  In this episode Newton, Sace, and I offer a debriefing about the Faculty Summer Institute recently held at the University of Illinois Urbana-Champaign, We attended several sessions and discuss some of the many ideas and practices shared at this years conference. #FSIengage Your browser does not support the audio element. Right-click here  to download. Show Notes: Faculty Summer Institute 2018 website Faculty Summer Institute 2018 - Session Schedule University of Sydney (Australia) Master Class: Making Educational Videos What is NoteStreaming 4.0? YouTube Video Overview edcampEIU 2018 registration page (June 19, 2018) Technology Picks of the Week Tom's Tech Pick of the Week Microsoft Forms Summary Link  (Twitter: Sarah Clark - Sfm36) Newton's ...

Quoting Statistics

Whether you are a prosecution or defence barrister quoting statistical facts has its benefits when quoted to the jury. Using Stats is not without its pros and cons. However, with the ever increasing size/quantity of network traffic and stored data it appears inevitable describing data in a meaningful way to a jury using statistical statements is being re-defined on a annual basis. For example,