How to remove #more tag in Wordpress

By default Wordpress post listing will embed with #more tag. If you do not like the #more tag like me, you can remove the #more tag using wordpress filter. In case you do not know what is #more tag, here’s the explanation. Whenever user click on the “read more” link at the post listing, it will redirect user to the single post page and auto focus on the anchor tag. I dun find this very useful but caused of confusion to my readers.
To remove the #more in Wordpress listing, follow the steps below:-
- Login to your wordpress
- Go to Appearance -> Editor
- Click on functions.php at the right sidebar
- Copy and paste the code below, and click “Update File”
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'); - Now the #more jump at the post listing should have removed
Credit: Codex
Tags: remove #more jump, remove more jump wordpress, Wordpress, wordpress disable more, wordpress remove #more, wordpress remove #more jump, wordpress remove more anchor
Posted at February 2nd, 2010 by chua
If you think this article helps you to solve your problem and clear your headache, feel free to buy me a drink :)



February 10th, 2010 at 6:24 pm
I love you dude, that was perfect