Disable Auto Go To (Jump) To Read More Tag
In Wordpress, it’s possible to a WordPress blog site to display post excerpts on the front or home page, and the visitors have to click on the title or a link to continue reading your post or article.
One way of achieving this technique is by using the quicktag called “more”. The quicktag “more” is inserted into the post at the desired break-off (or cut-off) point so that everything above it become an excerpted content of the post and everything below it will only be readable when the visitors click on the title or a link to view the whole post.
The quicktag “more” is implemented by inserting the following line of code into the post:
However, by default, when a visitor click on the Read More link, the web page loads and then automatically forwards or jumps to the spot where the tag is set in the post. If you do not want this kind of positioning, you can change the default function of how this works by editing the following line in wp-includes/template-functions-post.php:
$output .= ‘ <a href="’. get_permalink() . "#more-$id\">$more_link_text</a>";
to
$output .= ‘ <a href="’. get_permalink() ."\">$more_link_text</a>";
or
$output .= ‘ <a href="’. get_permalink() ."”>$more_link_text</a>’;
After the change, the Read More link will load the blog post and stop at the top of page instead of position where the quicktag “more” were.
NOTE: When upgrading WordPress, this file will be replaced so make a note of the change so you can change it again after upgrading.
Related Articles
- How to Disable Image and Video Captions Feature and Auto Adding of Shortcode in WordPress 2.6
- Disable Auto-Run and Auto-Play of U3 Smart Drives Launchpad
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page
- Disable Aero Snap Auto Maximize and Arrange Window in Windows 7
- Disable Firefox 3 Auto Save Tabs on Close to Prompt for Choice
- Stop and Disable Web Pages Auto Refresh or Reload in Firefox
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above
- Hack to Turn Off and Disable Windows 7 CD or DVD Writer Burning and Auto Tray Ejection Feature
- Enable or Disable Aero Border Frame in Windows Live MSN Messenger (with Auto Switcher)
- How To Store Every Post Revisions on Each Auto-Save in WordPress with Limit on Versions Count










































June 30th, 2008 02:40
[...] http://www.mydigitallife.info/2005/11/16/disable-auto-go-to-jump-to-read-more-tag/ [...]
May 26th, 2008 19:42
Thank you for this cool tip! In Word Press 2.5 the file you have to edit is wp-includes/post-template.php, but the code is still the same…
Werner
July 12th, 2006 20:23
thanks for the hack code.. i will implement to my site… i use joomla at this time….. want to tray wordpress