• Resolved tjobbe

    (@tjobbe)


    I have a news category which shows the latest posts and each post is displayed and truncated using the <!–more tag.

    When each link is clicked, it takes them to the point where the read more link should start from, is there a way to remove this?

    So instead of;
    https://businessdesign.sitecreative.net/company-news/business-design-sponsors-local-charity-event/#more-20

    I then have;
    https://businessdesign.sitecreative.net/company-news/business-design-sponsors-local-charity-event/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tjobbe

    (@tjobbe)

    I’d like to know how you fixed it. The syntax is different now that what’s shown in that example. The new lines looks like this:

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

    I tried changing it to:

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

    But the link still jumps to the MORE tag in the target page, not to the top.

    Did you follow Tjobbe’s link? The plugin description says:

    A simple plugin that allows you to modify the link that is displayed when you use the <!–more–> feature. Also lets you remove the anchor link to turn off the jumping behaviour.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove anchor link from “read more” link’ is closed to new replies.