Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Jetpack] Customize the contents of the "Older Posts" text appearing when activating Infinite Scroll.
<?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 );
@UnaiYecora

This comment has been minimized.

Copy link

UnaiYecora commented Jun 5, 2014

Thanks, I was looking for this! (:

@afgarcia86

This comment has been minimized.

Copy link

afgarcia86 commented Oct 10, 2016

Big help thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.