[Resolved] Read more (generate_more_jump)

Home Forums Support [Resolved] Read more (generate_more_jump)

Home Forums Support Read more (generate_more_jump)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #888426
    Willy

    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

    #888936
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Just to confirm, you’re adding this PHP?: https://docs.generatepress.com/article/generate_more_jump/

    Your read more buttons have been generated automatically, right? You haven’t been adding them manually?

    Let me know πŸ™‚

    #889123
    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)

    #889194
    Tom
    Lead Developer
    Lead Developer

    No problem! Glad I could help πŸ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.