# Change the "Read More" Tag Link

> Changes the text of the link created by the More block and stops it from jumping halfway down the post when clicked.

- Type: PHP
- Runs: Run everywhere
- Category: [Content](https://wpide.com/library/category/content/)
- Tags: read-more, excerpts, links
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/custom-more-tag-link/

## Code

```php
// Link text.
$wpide_more_text = 'Keep reading &rarr;';
// Keep the jump to the #more-123 anchor.
$wpide_more_jump = false;

add_filter( 'the_content_more_link', function ( $link ) use ( $wpide_more_text, $wpide_more_jump ) {
    $url = get_permalink();

    if ( $wpide_more_jump ) {
        $url .= '#more-' . get_the_ID();
    }

    return '<a class="more-link" href="' . esc_url( $url ) . '">' . wp_kses_post( $wpide_more_text ) . '</a>';
} );
```

## Notes

Set $wpide_more_text to your own wording. Set $wpide_more_jump to true to keep the jump to the #more anchor.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Change the "Read More" Tag Link" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
