Forums

[resolved] Customizing the Read More in 2.7 (5 posts)

  1. Harfleur
    Member
    Posted 3 years ago #

    In the past, I've always been able to change the behavior of the "read more" link by following the instructions on this page in the Codex and editing wp-includes/template-functions-post.php. But template-functions-post is gone in 2.7, and I'm wondering if anyone can tell me where the equivalent lines now appear.

    What I want to do specifically is to make the "read more" link take the reader to the top of the post rather than to the point where the #more anchor appears. In the past that's involved changing the line

    $output .= ' <a href="'. get_permalink()
    . "#more-$id\">$more_link_text</a>";

    in template-functions-post by deleting the reference to #more-$id.

    Anyone know where I can do that in 2.7? Thanks in advance...

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    I used WinGrep to find that in wp-includes/post-template.php

  3. Harfleur
    Member
    Posted 3 years ago #

    Thanks, MichaelH---much appreciated.

  4. jrliem
    Member
    Posted 3 years ago #

    Hello,

    I am newbie & a desperate man finding solution read more problem.
    I use WP 2.7.1 and standard as well.
    Here are what i did :

    1. Add new post
    2. Switch the editor to HTML view
    3. Click button more to insert <!--more--> between words
    4. Save and Upload
    But I can't find the "read more" in the words.

    What step I missed?

    Thank you

  5. jrliem
    Member
    Posted 3 years ago #

    Please ignore my previous post. It has been solved.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags