![]() |
Instead return to the top of the page. You know how when you click "read more" it will jump to the spot in the page which can be annoying, this makes it just load the page normally, no jumping! |
Example:
PHP
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');
How to Customize the Dashboard | Wordpress Dashboard Shortcode |
How to Remove unwanted dashboard items | Wordpress Dashboard Shortcode |
How to Remove "Read More" page jumps | Wordpress Dashboard Shortcode |
Remove "Read More" page jumps** | Wordpress Dashboard Shortcode |
Read Full: | Wordpress Dashboard Shortcode |
Category: | Web Tutorial |
Sub Category: | Wordpress Dashboard Shortcode |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 56 |