1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Header code deleted in wordpress, how to retrieve it?

Discussion in 'White Hat SEO' started by Puja, Mar 16, 2018.

  1. Puja

    Puja Newbie

    Joined:
    Jan 24, 2018
    Messages:
    15
    Likes Received:
    0
    Gender:
    Female
    Hello friends there is new query I am currently dealing with..
    I was working on-page on my website that is in wordpress and accidentaly deleted header.php codes. Having no backup. Now the file is blank and the layout of the whole website is ruined. How to fix this issue? Or either it is possible or not? Please help!
     
  2. rimvy

    rimvy Regular Member

    Joined:
    Oct 8, 2017
    Messages:
    455
    Likes Received:
    155
    Gender:
    Male
    Location:
    localhost
    What's your theme? If it's default themes, then from default wp install, take headers.php file and upload to your server, if it's theme from somewhere else, do the same, upload header.php file
     
  3. Puja

    Puja Newbie

    Joined:
    Jan 24, 2018
    Messages:
    15
    Likes Received:
    0
    Gender:
    Female
    it's a multisite network having multiple site for 9 languages and the file gone deleted is from the admin of the network.
     
  4. rimvy

    rimvy Regular Member

    Joined:
    Oct 8, 2017
    Messages:
    455
    Likes Received:
    155
    Gender:
    Male
    Location:
    localhost
    Header.php file is in the theme directory, find out what's your theme, open your themes zip file(when you bought theme, you got .zip file), extract header.php file and upload.
     
  5. Puja

    Puja Newbie

    Joined:
    Jan 24, 2018
    Messages:
    15
    Likes Received:
    0
    Gender:
    Female
    Okay Sir thank you!