admin管理员组文章数量:1122832
So I logged into FTP and navigated to /wp-content/themes/MyChildTheme/
and edited the header.php
file. I saved the file and uploaded it and I can confirm the file has changed because if I check via cPanel or on a different computer I can see the new code.
However... if I go to WP-Admin and navigate to Appearance > Editor > MyChildTheme > header.php
as you see below:
The file appears un-edited... I can't see the code that I added. I've cleared the LiteSpeed cache but it doesn't show the edited code still.
I've tried to edit the code from this page and it appears to have worked once but yet the actual change doesn't appear on the website... Whilst I said it appears to have worked once there still stills to be an issue with "Update file" because when I click the button it eventually times out but during this "timeout" the website is unreachable...
The button does the following for like 2 minutes:
It throws:
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.
I'm not sure what's going wrong :/ any ideas
So I logged into FTP and navigated to /wp-content/themes/MyChildTheme/
and edited the header.php
file. I saved the file and uploaded it and I can confirm the file has changed because if I check via cPanel or on a different computer I can see the new code.
However... if I go to WP-Admin and navigate to Appearance > Editor > MyChildTheme > header.php
as you see below:
The file appears un-edited... I can't see the code that I added. I've cleared the LiteSpeed cache but it doesn't show the edited code still.
I've tried to edit the code from this page and it appears to have worked once but yet the actual change doesn't appear on the website... Whilst I said it appears to have worked once there still stills to be an issue with "Update file" because when I click the button it eventually times out but during this "timeout" the website is unreachable...
The button does the following for like 2 minutes:
It throws:
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.
I'm not sure what's going wrong :/ any ideas
Share Improve this question edited May 8, 2019 at 22:53 Ryflex asked May 8, 2019 at 0:30 RyflexRyflex 8311 bronze badges 4- do you have cloudflare cache enabled? – Vishwa Commented May 8, 2019 at 5:08
- Yes, but disabling it isn't doing anything either. – Ryflex Commented May 8, 2019 at 22:49
- did you tried purge cache+put it in dev mode? anyways did you checked with file permissions? – Vishwa Commented May 9, 2019 at 4:38
- Yes, yes and yes. Tried all of them :( – Ryflex Commented May 9, 2019 at 10:55
1 Answer
Reset to default 0Be sure you uploaded in right path. Then please upload file directly with cpanl.
I think your ftp doesn't right configuration
本文标签: Edited Child Theme39s quotheaderphpquot but it doesn39t appear to change the file
版权声明:本文标题:Edited Child Theme's "header.php" but it doesn't appear to change the file 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736294949a1929466.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论