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.

Share and contribute or get technical support and help at My Digital Life Forums.



3 Responses to “Disable Auto Go To (Jump) To Read More Tag”

  1. mumut
    July 12th, 2006 20:23
    1

    thanks for the hack code.. i will implement to my site… i use joomla at this time….. want to tray wordpress :)

  2. Werner Mager
    May 26th, 2008 19:42
    2

    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

  3. Sternico Blog» Blogarchiv » WP Tweaks (Teil 2)
    June 30th, 2008 02:40
    3

    [...] http://www.mydigitallife.info/2005/11/16/disable-auto-go-to-jump-to-read-more-tag/ [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

remove jump - joomla remove read more - auto go - read more tag - wordpress more jump - HOW DO YOU STOP AUTO SCROLLING IN WINDOWS XP? - turn off auto click - read more tag html - Vista auto scrolling - wordpress+page jumps+read more - automatic scroll+Outlook - joomla readmore - ausschalten auto-read funktion outlook - 自動 リンクジャンプ - outlook 2007 disable autoread - Electronically Disable Auto CD Player - vista autoscroll abschalten - auto "read more" joomla - switch off automatic scroll in explorer - windows vista + disable auto-scroll - "read more tag" blog - explorer vista scroll jumps - joomla tag read more - stop automatic scrolling in explorer 7 - wordpress edit more tag jump - auto read in outlook how stop - disable autoscroll on vista - turn off auto scroll in IE - disable automatic scroller + vista - internet explorer disable autoscroll - stop automatic scrolling windows vista - vista turn off auto click - autoscroll wordpress - traduzir link "read more" joomla - stop jump page href - turn on auto scrolling - wordpress auto Continue reading - auto zum deutsche post - How To Stop Automatic Scrolling explorer - ie7 automatic scrolling - remove more tag jump in wordpress - autoscroll vista - disable html# jump to link page - outlook stop auto read - read more wordpress jump - windows xp 30 Tage activation ausschalten - how to post more after the jump on wordpress - automatic scrolling ie7 - Português auto - html + auto go top page -