简体   繁体   English

如何通过php文件修改Divi布局?

[英]How can I modify the Divi layout via php files?

I'm using Divi Wordpress and I wanted to add some extra markup. 我正在使用Divi Wordpress,并且想添加一些额外的标记。 I added the extra markup in header.php but It's not appearing in any other page other than the homepage. 我在header.php中添加了额外的标记,但是除了主页以外,其他标记均未出现。

I went ahead and modified the other files (index.php, single.php, page.php) but nothing is happening. 我继续修改了其他文件(index.php,single.php,page.php),但没有任何反应。

Funny thing is that I searched the files for the current markup that is generated. 有趣的是,我在文件中搜索了当前生成的标记。 I found a couple of files and modified them but nothing. 我找到了几个文件并对其进行了修改,但没有任何修改。 I even deleted those files but nothing is happening! 我什至删除了这些文件,但什么也没发生!

How the hell is Wordpress generating that markup if it has no files that contain such a markup? 如果没有包含此类标记的文件,Wordpress将如何生成该标记?

The homepage immediately knows that something is wrong (no files) but the other pages are not. 主页立即知道出了点问题(没有文件),而其他页面没有错。

If I delete the whole divi folder, the css is gone but the markup is still generated by some divi files. 如果删除整个divi文件夹,则css消失了,但标记仍由某些divi文件生成。

What black magic is this :)? 这是什么黑魔法:)?

And yes, I forced refresh, tried another browser and restarted XAMPP. 是的,我强制刷新,尝试使用其他浏览器,然后重新启动XAMPP。

I found the answer myself. 我自己找到了答案。 The wordpress installation was cloned from a previous one. WordPress安装是从先前的安装中克隆的。 It seems that the files were used from that installation, so I could edit the php files untill tomorrow. 看来文件是从该安装中使用的,所以我可以编辑php文件,直到明天。 Strange! 奇怪!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM