Site logo

[Support request] post URL get extra words after clicking on Read More

Home Forums Support [Support request] post URL get extra words after clicking on Read More

Home Forums Support post URL get extra words after clicking on Read More

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1572752
    Sahidul

    Hello,
    When I clicked on “Read More” button of a post, in the post URL- it shows some extra words at the end of the URL.
    For example- https://mySiteName.com/MyPostname/#more-1095
    Why this #more-1095 added on the post URL after clicking on Read More button? In every posts, I am facing this.
    I have attached a screenshot. I do not want this. How to solve this?
    Read More button URL problem

    #1572800
    David
    Staff
    Customer Support

    Hi there,

    you can remove the default More Jump link using the PHP snippet provided here:

    https://docs.generatepress.com/article/generate_more_jump/

    Adding PHP:
    https://docs.generatepress.com/article/adding-php/

    #1573800
    Sahidul

    Where would I add this code?
    add_filter( ‘generate_more_jump’, ‘__return_false’ );
    in function.php file?

    #1573816
    Elvin
    Staff
    Customer Support

    Hi,

    Where would I add this code?
    add_filter( ‘generate_more_jump’, ‘__return_false’ );
    in function.php file?

    David’s reply provided a link that explains how to add PHP snippets: https://docs.generatepress.com/article/adding-php/

    You can place it inside the functions.php of your child theme. Make sure you don’t add it on the theme’s default functions.php as changes you make on the default GeneratePress theme files will be wiped once the theme updates.

    Alternatively, you can use Code Snippets plugin to add the code.

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