0

我正在尝试更改朋友 Wordpress 网站上“旧帖子”按钮上的文本...我发现了这个(https://gist.github.com/jeherve/6177741)---我只是不知道在哪里将其粘贴到 functions.php 文件中。任何帮助是极大的赞赏!

丽兹

4

1 回答 1

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 );
于 2014-07-11T00:07:54.940 回答