Site logo

Archived topic

All blog post showing #more-2233 or #more-2264 etc at the end of the post url

9 replies · Started by khan on September 19, 2020

Viewing posts 1–10 of 10

All blog post showing #more-2233 or #more-2264 etc at the end of the post url
exm: https://generatepress.com/support/#more-2264
how can i solve this problem? please tell me the simple way to fix this with details

thnx

still i cant fix it .
where should i add this php - add_filter( 'generate_more_jump', '__return_false' );

I am not an expert in PHP . can i do this with elements using a hook? If can, what option should i select when using hook(on settings) and location(on display rules)

Hi there,

you cannot add that using a Hook Element. The document Leo provided here explains:

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

TLDR:
If you're using a child theme then add the code to your child themes functions.php
If you're NOT using a child them then install the Code Snippets plugin and add it there.

Hi David, i am very happy now,,,,
You said,, i cannot add that using a Hook Element

but i fix it using a custom hook elements. i create a custom hook and add this php- add_filter( 'generate_more_jump', '__return_false' ); there.

now it's perfectly ok

Thank you very much....david and Leo

I am really sorry
I was wrong
when i created a custom hook with this name (generate_more_jump), its working but it show add_filter( 'generate_more_jump', '__return_false' ); add_filter( 'generate_more_jump', '__return_false' ); in the every blog post before the Read More button.
There is any way to hide this code from blog post that will be perfect

If not!
I will try it with plugin

Thnx...

As Leo and I said you need to add it using one of the methods provided. Either a child theme functions.php or the code snippets plugin.

Using hooks you're inserting the code somewhere either in the core WP Code or a theme template. Whereas that filter needs to be executed before a template is called.

Yea , I got it

Thank you very much

No problem :)

This archived topic is closed to new replies.