• [Please do not post topics in all caps – it’s considered yelling]

    Hi!
    I used the “More Link/Tab” for the first time but didn’t like the page to be scrolled down to the middle of the post, so I added this to the functions.php 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');

    It worked the first time but made everything slower and harder to load. I would get error pages constantly so I erased it from the file.

    Afterwards I tried it again and it doesn’t work anymore. I’ve tried several times, logging out and in again (in case it needed refreshing) and it still doesn’t work.

    Sorry about my ignorance, I’ve only been blogging for 5 days and feel totally confused about everything!

    Would really appreciate some help as I haven’t found anything online about it not working for other people.

  • The topic ‘Custom More link doesn't work’ is closed to new replies.