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

Home Forums Support [Resolved] All blog post showing #more-2233 or #more-2264 etc at the end of the post url

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

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1450097
    khan

    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

    #1450103
    Leo
    Staff
    Customer Support
    #1450725
    khan

    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)

    #1450851
    David
    Staff
    Customer Support

    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.

    #1450948
    khan

    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

    #1451165
    Leo
    Staff
    Customer Support

    That code should really be added using one of these methods:
    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Glad we could help though πŸ™‚

    #1452021
    khan

    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…

    #1452166
    David
    Staff
    Customer Support

    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.

    #1452217
    khan

    Yea , I got it

    Thank you very much

    #1452263
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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