Last active
October 10, 2016 13:48
-
-
Save jeherve/6177741 to your computer and use it in GitHub Desktop.
[Jetpack] Customize the contents of the "Older Posts" text appearing when activating Infinite Scroll.
This file contains hidden or 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 | |
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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, I was looking for this! (: