Remove Read More Jump In WordPress

Ever get irritated with the automated jump down a page when clicking a scan More… link in WordPress? I’ll show you ways to disable this in a very straightforward PHP piece that you simply will cut and paste into your wordpress root directory file named functions.php.

Here’s the piece (with comments thus you recognize what it’s doing):

 read more jump

remove read more jump

function remove_more_tag_link_jump($link) {
    $offset = strpos($link, '#more-'); //Locate the jump portion of the link
    if ($offset) { //If we found the jump portion of the link
        $end = strpos($link, '"', $offset); //Locate the end of the jump portion
    }
    if ($end) { //If we found the end of the jump portion
        $link = substr_replace($link, '', $offset, $end-$offset); //Remove the jump portion
    }
    return $link; //Return the link without jump portion or just the normal link if we didn't find a jump portion
}

add_filter('the_content_more_link', 'remove_more_tag_link_jump'); //Add our function to the more link filter

If you like this article ,share it with your friends. Hope you like this remove read more jump post.

Now reaching to your theme’s functions.php file is extremely easy. 1st choose Editor underneath the Appearances menu on the correct hand aspect in your WordPress dashboard. On the paw aspect there’ll be a listing of files you’ll be able to favor to edit. choose Theme Functions (functions.php). If this doesn’t exist you’ll have to be compelled to produce one Associate in Nursingd transfer to your themes directory (using an FTP program). simply copy and past the piece into that file either right when the gap ?php or right before the closing ?. Then pages can now not jump down when guests click a browse More… link.

Leave your queries or suggestions within the comments below. And please share this text if it absolutely was helpful!

Roy Jemee is a professional Blogger. Apart of blogging he likes to play with mathematics. He knows Blogging, Wordpress, PHP, javascript , SEO and some other.