我正在尝试更改朋友的Wordpress网站上“旧帖子”按钮上的文字...我发现了这个(https://gist.github.com/jeherve/6177741)---我不知道在功能中将其粘贴到哪里.php文件。非常感谢任何帮助!
利兹
答案 0 :(得分:0)
您链接的要点可以随时随地放在 functions.php 文件中。
连接到wp_footer
操作的函数的输出将显示在主题的get_footer()
位置 - 通常位于页面的最后。
了解更多:
<?php
function jeherve_custom_infinite_more() {
if ( is_home() || is_archive() ) {
?>
<script type="text/javascript">
//<![CDATA[
infiniteScroll.settings.text = "Custom Text";
//]]>
</script>
<?php }
}
add_action( 'wp_footer', 'jeherve_custom_infinite_more', 3 );