WordPress.org

Forums

Jetpack by WordPress.com
[resolved] Change the button text on infinite scroll (5 posts)

  1. jamo_dodger
    Member
    Posted 1 year ago #

    Hello,

    I am trying to change the text of the 'Older posts' button in infinite scroll.

    I have found the PHP responsible in the infinity.php file but do not want to edit this directly as my changes will get overwritten when I next update Jetpack.

    How can I do this in my functions.php? I read somewhere I need to use a filter or a hook but my PHP is limited.

    Thank you

    James

    https://wordpress.org/plugins/jetpack/

  2. jamo_dodger
    Member
    Posted 1 year ago #

    *my PHP knowledge is limited

  3. jonez
    Member
    Posted 12 months ago #

    I looked carefully at the module, and it doesn't seem to be a setting variable for that string. Hopefully in a future release?

  4. Chris
    Member
    Posted 12 months ago #

  5. jonez
    Member
    Posted 12 months ago #

    I threw your code in my functions.php file and it worked beautifully.. thanks!

    (jamo, skip that first "<?php" when you paste Chris' code in)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic