Site logo

Archived topic

Read more (generate_more_jump)

3 replies · Started by Willy on May 3, 2019

Viewing posts 1–4 of 4

Hi everybody,
On my website, my previous posts are all with a "read more" line added by me.
These posts, in the archive and in blog mode have the link "read more", ok. But the address of the link has text added (/ # more-1234), and I would like these links to lead to the beginning of the post.
I found your link:

https://generatepress.com/forums/topic/read-more-blog-post-button/

I added the "Code Snippets" plugin and put the code, as you recommend.
I emptied the cache ("WP Fastest cache" and "autoptimize"), but no change.

I would like to remove this anchor from the address, and that link arrives at the beginning of the post.
I could fix all my posts manually, but there are 300 ...

You can see this on the last post of the home page (and the following pages)
https://willyblanchard.ch/

I hope my english is clear? :)

Thanks for your help

Willy

Hi,
normally this code should have been added:
https://docs.generatepress.com/article/generate_more_jump/

But I had to do a bad manipulation, it's this code in the snippet:

add_filter( 'filter_name', 'example_function_name' );
function example_function_name()
{
return 'Your new value';
}

I had to copy / paste the wrong page. I authorize you to laugh :) . Thank you for pointing me to the right mistake. I am really sorry for the inconvenience.

Everything is ok now, thanks for your help !

Willy

(And yes, the "Read More" functions have been added manually in my old posts)

No problem! Glad I could help :)

This archived topic is closed to new replies.