Site logo

Archived topic

Clicking button goes to another url with "#more-"

2 replies · Started by Jee on April 16, 2020

Viewing posts 1–3 of 3

On the homepage, I have a "continue reading" (read more) button. When you click on the button to go to a post, it adds a "#more- " plus some numbers to the end of the url. How can I get rid of the "#more" so that clicking the button goes to the same url as the post?

Found the answer!

Added this:

add_filter( 'generate_more_jump','generate_disable_more_jump' );
function generate_disable_more_jump()
{
return '';
}

This archived topic is closed to new replies.