Customize text such as [Read more...] through the UI

  1. rothschild86


    This really needs to be in the core to be easily accessible to everyone. Along with some other common strings used in comments.


    The official hack (given at https://codex.wordpress.org/Customizing_the_Read_More) leads to a loss of functionality (Link no longer sends a reader to a #more-000 anchor). That needs to be handled way better.

    Full hack for reference (notice where the link gets botched):

    Modify The Read More Link Text

    Adding this code to your functions file enables you to customize the read more link text.

    add_filter( 'the_content_more_link', 'modify_read_more_link' );
    function modify_read_more_link() {
    return '<a href="' . get_permalink() . '">Your Read More Link Text</a>';
    Posted: 3 years ago #
  2. Assistenzarzt


    Thank you for this useful hack @Rothschild! That ist what I was looking for.

    I also voted for your idea. Should be definitively part of the core.

    Posted: 3 years ago #
  3. Nice hack, thanks a lot!

    Posted: 3 years ago #
  4. Wow! Thank u!

    Posted: 3 years ago #

RSS feed for this topic


You must log in to post.

  • Rating

    5 Votes
  • Status

    This idea is under consideration

No tags yet.