Finding custom-header.php in file manage on Wordpress Penscratch theme

倾然丶 夕夏残阳落幕 提交于 2019-12-02 11:28:28

Since you've made changes and you're not able to enter your website anymore, I have 2 solutions that might work for you very well since it worked for me.

I had the same problem as you do, I've tried to change the headers, even functions.php which lead me to lose the access of my website.

NOTE: Everytime you do changes to the source files, make sure you have a back-up.

METHOD #1

  • Log in to your host
  • Get FTP access from your hosting provider
  • Use FileZilla as FTP manager to log into your host provider
  • Your website might be located in the "www" folder
  • Navigate to your theme > wp-content > theme > theme_name Open the source files you've made changes before and add the back-up code there.

Once you've changed the code of source files you've edited before (in this case custom-header.php), of course if you're sure that custom-header.php is the problem then you'll be able to log in back to your wordpress account.

METHOD #2

  • By using the FTP Client FileZilla which i mentioned before, download the wp-content (all the images) and re-install wordpress.
  • Upon re-installation add the wp-content back to the original directory and re-create the website.

Thank you for peoples suggestions. The problem is now fixed.

My website provider is BlueHost.

I logged into BlueHost and found CPanel.

Here you are able to make changes to your website PHP files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!