Posted by KaiseRCrazY on 18th September 2009

Did you bored #more in links?

When i check my turkish website’s link i saw “#more” in the end of my links. Sometimes this tag change the title of post(s) when you click Read More. I think this is a bad thing. When i search about it i found in WordPress Codex this code. You can aplly for your theme.

Here is the code;

With this code we will change our theme’s functions.php. If you don’t know about WordPress coding or PHP please don’t touch this file.

Firstly you should make a backup of your theme’s functions.php. After that open the functions.php and paste this code;

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');

 That’s All. Have a nice day!

  • del.icio.us
  • Digg
  • Facebook
  • FriendFeed
  • Reddit
  • StumbleUpon
  • Technorati
  • PDF
  • Print

No comments yet!

Post your comments