Continue Reading Button Links to Middle of Page

  • Posted in : Read WP
  • jamiewalden
    Participant

    When I click the “continue reading” button from the homepage to view a single post, it links to the middle of the post. This happens on the Read WP demo site too. Please advise.

    Mehmet S.
    Keymaster

    Hi, it is a WordPress feature.

    Thanks

    jamiewalden
    Participant

    Thanks for nothing. But if you actually want to be helpful next time someone asks this question, you add this filter to the theme functions file.

    function remove_more_jump_link($link) {
    $offset = strpos($link, ‘#more-‘);
    if ($offset) {
    $end = strpos($link, ‘”‘,$offset);
    }
    if ($end) {
    $link = substr_replace($link, ”, $offset, $end-$offset);
    }
    return $link;
    }
    add_filter(‘the_content_more_link’, ‘remove_more_jump_link’);

    Mehmet S.
    Keymaster

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register