How to remove #more tag in WordPress

This forum is for discussion of Google only. Post anything Google here, including news and SEO related questions.
Post Reply
michaelvk
Posts: 20
Joined: Tue Aug 31, 2010 7:28 am
Location: United States
Contact:

How to remove #more tag in WordPress

Post by michaelvk »

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

yinji
Posts: 69
Joined: Thu Nov 11, 2010 5:48 pm
Contact:

Re: How to remove #more tag in WordPress

Post by yinji »

it is a difficulty question for me,wait the answer....

Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests