This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the Thesis Docs for current documentation.
When you use the <!--more-->
quicktag in WordPress, the resulting “read more” link includes an anchor tag, so that when one of your readers clicks the link, they’re taken to the full post view, but with a “jump” to the location in the post where they left off reading before the click.
Some blog owners prefer that this jump not take place, so that readers see the full content of the post after clicking the link. There are a couple of ways to remove the anchor from the link, eliminating that jarring “jump” when the individual post page loads in the browser.
One option is to install the More Link Modifier plugin, which has an option to remove the anchor.
If you’d rather not install yet another plugin, you can simply place the following code in your Thesis custom_functions.php
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');