Forums

[resolved] How to customize "Read More"? (6 posts)

  1. avenueapple-mac
    Member
    Posted 1 year ago #

    Right now I have this code in my index.php:

    <div class="postentry">

    <?php the_content(sprintf(__('Continue reading ‘%s’ »', 'f2'), the_title('', '', false))); ?>
    </div>

    When I use the "more" button in my post, the text shows up in my post as...

    Continue reading Title Of My Post

    How can I make it to read simply "Read More..." or "Continue reading..." without the title of my post?

  2. Indeedle
    Member
    Posted 1 year ago #

    Take out the %s. The function replaces %s that with the title of your post, so you can change it to just 'Read more...' and it'll show up.

    Eg:
    <?php the_content(sprintf(__('Read More...', 'f2'), the_title('', '', false))); ?>

  3. Samuel B
    moderator
    Posted 1 year ago #

  4. avenueapple-mac
    Member
    Posted 1 year ago #

    Thanks, Indeedle! It works!

  5. Indeedle
    Member
    Posted 1 year ago #

    Reading the link would be better xD Because I didn't pay attention to what I was writing, and it had needless stuff in it.

    <?php the_content(__('Read More...', 'f2')); ?>

  6. avenueapple-mac
    Member
    Posted 1 year ago #

    Cool. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.