"continue reading" failed

Support Area Forums Photobug "continue reading" failed

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #6538
    Christian Reimann
    Participant

    hi Bill,
    i hope you can help me. I have some problems with the theme….
    can you please tell me how i can fix the problem, that if i put in “continue reading” and follow the link in the fronted, then the anchor does not jump to the top of the article.

    Can you please give me some help…
    thanks from germany…
    chris

    #6539
    Bill Robbins
    Moderator

    Chris,

    Great question. By default WordPress will take you to the point in the post where the more tag is placed. You can change that though. Here’s how:

    1. Go to the appearance section and select edit to open up the theme editor.
    2. From the list of files on your right, choose functions.php.
    3. Scroll down to the very bottom until you see ?>
    4. Paste this just above the ?>:
      
      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');
      
    5. Save your changes.

    That should take care of the jumping for you. I found that solution on this page in the WordPress Codex.

    If you have any trouble, let me know.

    Thank you for your business,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘"continue reading" failed’ is closed to new replies.