花了几个小时试图在我的wordpress网站上的页脚上“删除论文”中删除这些文本。我用论文主题。我试过寻找包含文本但没有运气的页脚文件。我也尝试将它从钩子中取出。 “custom_functions.php”但仍然无法正常工作。任何帮助都会非常感激。
答案 0 :(得分: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');
答案 1 :(得分:0)
转到以下目录:
\wordpress_root\wp-content\themes\your_theme_name
在此文件夹中有一个名为footer.php
在此文件中,您将找到要删除的文本。
抱歉没看到你已经这样做了:
没有下载主题我不确定。请发布footer.php文件,以便我们提供帮助。
答案 2 :(得分:0)
非常简单。您可以使用Thesis Hooks来做到这一点。
remove_action('thesis_hook_footer', 'thesis_attribution');
在这里阅读更多
答案 3 :(得分:0)
对于论文1.x版本,您必须添加一个代码才能从页脚中删除它。 但是对于最新的论文2版本,您可以使用论文2版本的皮肤编辑器选项拖动和删除该页脚属性框。有关更多信息,请参阅这些帖子
希望这会有所帮助。