Archived topic
Remove "#more-" from URL's on homepage and Read More Button
11 replies · Started by Mike on July 14, 2020
Nevermind. For those looking, add this to your functions.php page:
add_filter( 'generate_more_jump', '__return_false' );
No problems :)
Just in case anyone else needs it , the doc here provides the. original PHP Snippet to disable the WP added more jump
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
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.
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
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. :)
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
No problem. :)
I have tried the Code snippets method listed above and it does not work.
Broadcast theme
I have cleared cache.
Please advise.
BR
Matt
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.
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?
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.