Posted By

scottnix on 10/06/11


Tagged

wordpress to read skip more thematic


Versions (?)

Thematic Read More Skip To


 / Published in: PHP
 

URL: http://themeshaper.com/forums/topic/modifying-the-destination-of-more-link

Set up to disable the page jump on a Read More link (skip to feature).

  1. //remove the skip link feature on read more
  2. function remove_more_jump_link($link) {
  3. $offset = strpos($link, '#more-');
  4. if ($offset) {
  5. $end = strpos($link, '"',$offset);
  6. }
  7. if ($end) {
  8. $link = substr_replace($link, '', $offset, $end-$offset);
  9. }
  10. return $link;
  11. }
  12. add_filter('the_content_more_link', 'remove_more_jump_link');

Report this snippet  

You need to login to post a comment.