Created
October 31, 2015 15:24
-
-
Save jpmarchand/300d68d6a311b43daf95 to your computer and use it in GitHub Desktop.
Customize Jetpack Infinite Scroll module 'Older Posts' text. Source: https://gist.github.com/jeherve/6177741#file-functions-php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Customize Jetpack Infinite Scroll module 'Older Posts' text | |
function prefix_jetpack_infinite_scroll_custom_text() { | |
if (is_home() || is_archive()) { | |
?> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
infiniteScroll.settings.text = "Custom Text"; | |
//]]> | |
</script> | |
<?php | |
} | |
} | |
add_action('wp_footer', 'prefix_jetpack_infinite_scroll_custom_text', 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment