[Resolved] Remove “#more-” from URL’s on homepage and Read More Button

Home Forums Support [Resolved] Remove “#more-” from URL’s on homepage and Read More Button

Home Forums Support Remove “#more-” from URL’s on homepage and Read More Button

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1363669
    Mike

    Nevermind. For those looking, add this to your functions.php page:

    add_filter( ‘generate_more_jump’, ‘__return_false’ );

    #1363697
    David
    Staff
    Customer Support

    No problems ๐Ÿ™‚
    Just in case anyone else needs it , the doc here provides the. original PHP Snippet to disable the WP added more jump

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

    #1713440
    Patrick

    Hi David,

    Thanks for providing the PHP Snippet to remove the “#more”.

    However, can you please tell us on which page to insert that code exactly? Is it in the functions.php page like Mike suggested, or is it on another page?

    The instructions are not quite clear for me.

    Best Regards,

    Patrick

    #1713488
    Elvin
    Staff
    Customer Support

    Hi Patrick,

    Here’s how to add PHP snippet – https://docs.generatepress.com/article/adding-php/

    You can pick either a child theme’s functions.php or Code Snippets plugin.

    Code snippets plugin is easier if you don’t want to install a child theme.

    #1714683
    Patrick

    Hi Elvin,

    Thanks for your help… However, it did not work.

    I’ve added following Code Snipper plugin: https://en-ca.wordpress.org/plugins/insert-php-code-snippet/

    Then, I create a new PHP code with the following code:

    add_filter( ‘generate_more_jump’, ‘__return_false’ );

    I did clear my cache.

    Why is it so complicated to remove such a feature? Can’t this just be added as a feature inside the Generate Press plugin?

    Can you please provide clear step by step instruction. Which plugin to install, which code to insert, etc.

    But the best option in my opinion would be to add it inside the Generate Press plugin directly.

    Regards,

    Patrick

    #1714869
    Elvin
    Staff
    Customer Support

    From the same article I’ve linked, there’s actually a link for the recommended plugin to use.

    It’s this one:
    https://en-ca.wordpress.org/plugins/code-snippets/

    And here’s how the snippet setting should look like.
    https://share.getcloudapp.com/qGuEppEL

    Step by step instruction:
    1.) Install Code Snippets plugin. https://en-ca.wordpress.org/plugins/code-snippets/
    2.) Go to Dashboard > Snippets.
    3.) Click “Add New Snippet”. https://share.getcloudapp.com/5zuBmm95
    4.) You should see a couple of text fields and radio check buttons. Here’s what you should set on things.
    https://share.getcloudapp.com/qGuEppEL

    Why is it so complicated to remove such a feature? Canโ€™t this just be added as a feature inside the Generate Press plugin?

    I’ve raised it as a feature request. ๐Ÿ™‚

    #1715779
    Patrick

    Hi Elvin,

    Thanks for your response and for raising it as a feature request, it’s much appreciated.

    Looking forward to that feature.

    Have a great day.

    Patrick

    #1715968
    Elvin
    Staff
    Customer Support

    No problem. ๐Ÿ™‚

    #1780548
    Mattias

    I have tried the Code snippets method listed above and it does not work.
    Broadcast theme
    I have cleared cache.
    Please advise.

    BR
    Matt

    #1780627
    Leo
    Staff
    Customer Support

    The code should definitely work.

    Can you make sure all caching is cleared if you are using any?

    If this doesn’t help, please open a new topic and link us to the page in question.

    #2448921
    Gary

    Having this same issue currently.
    I’ve added the PHP snippet in code snippets, cleared cache, still no resolution.

    Is the PHP snippet still a viable fix for this issue?

    #2449421
    Leo
    Staff
    Customer Support

    Yes – this snippet is still the solution:
    https://docs.generatepress.com/article/generate_more_jump/

    If it doesn’t work for you, can you open a new topic and link us to the page in question?

    Thanks.

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