首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >删除从主题中自动生成的div元素

问删除从主题中自动生成的div元素
EN

WordPress Development用户
提问于 2016-01-14 13:44:36
回答 1查看 2.1K关注 0票数 0

我有一个主题,我想从其中删除以下html内容,这些内容是自动生成的:

代码语言:javascript
复制
<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>

我该怎么做?

EN

回答 1

WordPress Development用户

发布于 2016-01-14 13:58:06

正如您正确地指出的,这些内容是由wordpress使用主题中的模板文件自动生成的。Wordpress将按照名为模板式的约定使用其中一个文件(例如,wordpress将使用single.php显示单个post页面,或者使用archive.php显示存档页面)。

为了促进可重用代码块的使用,您可以在此文件中调用将合并的其他部分。用于执行此操作的两个常用函数是到达_标头()和到达_页脚(),它们将分别包括header.php和footer.php。

由于您试图修改的部分似乎是版权部分,它通常位于页面的页脚中,因此我首先检查主题中的footer.php模板部分,以查看该部分代码是否存在。

关于法典的更多信息

票数 1
EN
页面原文内容由WordPress Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://wordpress.stackexchange.com/questions/214533

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档