我有一个主题,我想从其中删除以下html内容,这些内容是自动生成的:
<div style='position:fixed;left:0;right:0;bottom:0;background:#f00;text-align:center'>Please return following links to the footer: <div class='smthemes'>Designed by <a href='http://officielsiteici.com/' target='_blank'>http://officielsiteici.com/</a>, thanks to: <a href='http://galaxycoquefr.com/' target='_blank'>galaxycoquefr.com</a>, <a href='http://officielcoquefr.com/' target='_blank'>officielcoquefr</a> and <a href='http://coquesfrs5.com/' target='_blank'>r4 3ds</a></div></div>我该怎么做?
发布于 2016-01-14 13:58:06
正如您正确地指出的,这些内容是由wordpress使用主题中的模板文件自动生成的。Wordpress将按照名为模板式的约定使用其中一个文件(例如,wordpress将使用single.php显示单个post页面,或者使用archive.php显示存档页面)。
为了促进可重用代码块的使用,您可以在此文件中调用将合并的其他部分。用于执行此操作的两个常用函数是到达_标头()和到达_页脚(),它们将分别包括header.php和footer.php。
由于您试图修改的部分似乎是版权部分,它通常位于页面的页脚中,因此我首先检查主题中的footer.php模板部分,以查看该部分代码是否存在。
关于法典的更多信息
https://wordpress.stackexchange.com/questions/214533
复制相似问题