Can I stop the more tag from jumping to the middle of my post?

  • Unknown's avatar

    I’ve read I can add this line of code to me functions.php file to do this

    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’);

    but being a free user I’m not sure if I have this capability or even know how to use it… so is there any other way to do it? Or am I wrong and can actually use this method myself somehow?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    You can’t use that code at WordPress.com, at least not without the paid CSS upgrade and maybe not even with it.

    The More tag always jumps to the first line after the More tag. You might want to insert a few lines of white space to prevent it from jumping too low.

  • Unknown's avatar

    and there’s not some other code I can just add right in the html code of the individual more tags that will prevent it from doing that?

  • Unknown's avatar

    No. Not at WordPress.com. Also, now that I re-read your posts, we can’t edit php at all here, so that solution you posted will not work here at all.

  • Unknown's avatar

    If you are logged in to WordPress.com, then remember that your admin bar takes up the top 28 px of you screen so using the read more tag (or page jumps) means that you have to take that vertical space into account for yourself and for other logged in wp.com users.

    Folk who are not logged in won’t see that blocked vertical area: you must add blank space (or place page jumps higher) so the linked place stays visible to all readers w/o them having to scroll up a little.

  • The topic ‘Can I stop the more tag from jumping to the middle of my post?’ is closed to new replies.