Site logo

Archived topic

post URL get extra words after clicking on Read More

3 replies · Started by Sahidul on December 9, 2020

Viewing posts 1–4 of 4

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

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.

This archived topic is closed to new replies.