Archived topic
post URL get extra words after clicking on Read More
3 replies · Started by Sahidul on December 9, 2020
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?
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/
Where would I add this code?
add_filter( 'generate_more_jump', '__return_false' );
in function.php file?
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.