Skip to content

Instantly share code, notes, and snippets.

@UnaiYecora UnaiYecora/functions.php forked from jeherve/functions.php
Last active Aug 29, 2015

What would you like to do?
[Jetpack] Customize the contents of the "Older Posts" text appearing when activating Infinite Scroll.
function jeherve_custom_infinite_more() {
if ( is_home() || is_archive() || is_search() ) {
<script type="text/javascript">
infiniteScroll.settings.text = "Custom Text";
<?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
You can’t perform that action at this time.