花了几个小时试图在我的 wordpress 网站上删除页脚“Get smart with the Thesis”上的这些文本。我使用了论文主题。我试过寻找包含文本的页脚文件,但没有运气。我也试着把它从钩子上取下来。“custom_functions.php”但仍然不起作用。任何帮助将不胜感激。
问问题
2136 次
4 回答
2
这可能会有所帮助
http://www.sugarrae.com/thesis-hooks-dummies-tutorial/#change-footer
/* Custom Footer Hook */
remove_action('thesis_hook_footer', 'thesis_attribution');
function add_custom_footer () {
?>
<p>© 2008 Ourblog.com – All rights reserved. – <a href="http://www.ourblog.com/privacy-policy/">Privacy Policy</a></p>
<p>No content on this site may be reused in any fashion without written permission from Ourblog.com or whatever you want your footer to include</p>
<?php
}
add_action('thesis_hook_footer', 'add_custom_footer');
于 2010-09-17T00:26:33.613 回答
0
转到以下目录:
\wordpress_root\wp-content\themes\your_theme_name
在这个文件夹中有一个名为footer.php
在此文件中,您将找到要删除的文本。
抱歉没有看到你已经这样做了:
不下载主题我不确定。请发布 footer.php 文件,以便我们提供帮助。
于 2010-09-16T14:57:11.627 回答
0
它非常简单。你可以使用 Thesis Hooks 来做到这一点。
remove_action('thesis_hook_footer', 'thesis_attribution');
在这里阅读更多
于 2011-07-29T14:30:42.607 回答
0
对于论文 1.x 版本,您必须添加代码以将其从页脚中删除。但是对于最新的论文 2 版本,您可以使用论文 2 版本的皮肤编辑器选项拖动和删除页脚属性框。有关更多信息,请参阅这些帖子
- 对于论文 2.x:从论文 2 页脚中删除论文归属链接
- 对于论文 1.x删除论文主题 1.8 的论文页脚链接
希望这会有所帮助。
于 2013-07-29T05:26:05.960 回答