bernd25 on ""Read More Link" jumps to top of page"
February 15, 2010 by David Olsen
Hi,
I’m using the following code to jump to the top of the page (instead of to where the more tag is set in the post), as seen here.
/* Link Jumps to More or Top of Page */
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');
1) Is it possible to jump to the top *only* on sticky posts (and not regular posts)?
2) If 1) is not possible, is it possible to jump to top *only* in posts from a certain category?
Thanks.
Related posts:
- Romeon on "Stuck showing page, not posts! help" Hello! I switch from posts to my “About” page under...
- t31os_ on "css what difference between using selector a whithout or with pseudo class link" You could cover them all in one definition.. a, a:link,...
- JordashTalon on "An Edit Page AND Edit Post Link" I want to put both an Edit Page and Edit...
- froman118 on "[Plugin: My Link Order] How to change link order style" Kuaile, You’ll need to modify your theme’s CSS to change...
- t31os_ on "How to restrict comment-ability on a per-user/per-page basis?" Have you checked the function reference. http://codex.wordpress.org/Function_Reference Action and filter...
Related posts brought to you by Yet Another Related Posts Plugin.






Comments
Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!