[Support request] Remove Pagination in HTML source code

Home Forums Support [Support request] Remove Pagination in HTML source code

Home Forums Support Remove Pagination in HTML source code

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #2330688
    Israel

    Hi,

    I’ve added this code add_filter( 'generate_show_post_navigation', '__return_false' ); in code snippets and it removed the pagination on front end.

    However, the pagination is still showing on the html code. is there a way to remove it entirely?
    This is for the pagination in my Custom Archive Post Category with over 600 posts. I’m using CPT UI plugin.

    #2330832
    Ying
    Staff
    Customer Support

    Hi there,

    The snippet should remove the pagination from HTML, can you link us to your site where we can see the issue?

    #2333680
    Israel

    Hi, I sent the site issues privately. Thanks

    #2334284
    Fernando
    Customer Support

    Hi Israel,

    Out of curiosity, why not just use a static page for the CPT in order to avoid the default loop?

    #2334778
    Israel

    Hi Fernando,

    Sorry but setting the CPT into a static page is not an option. Thanks

    #2335423
    Fernando
    Customer Support

    Can you try clearing cache?

    Moreover, do you have a custom template for this archive?

    #2335792
    Israel

    Hi Fernando,

    I sent the details in private. Thanks

    #2335835
    David
    Staff
    Customer Support

    Hi there,

    can you disable the Block Element Content Template for that archive.

    #2336169
    Israel

    Hi David,

    I tried disabling the Content Template, the problem is still there. Thanks

    #2336191
    David
    Staff
    Customer Support

    Do you have infinite scroll / load more enabled in the Customizer > Layout > Blog ?

    #2336209
    Israel

    Yes sir, the “Use infinite scroll” box is checked. “Use button to load more posts” box is unchecked.

    I also tried both checked and both unchecked. Still the same. I can still see the pagination in the html code.

    #2336211
    Israel

    Hi David, I sent you a message in private.

    #2336530
    Fernando
    Customer Support

    Can you perhaps share temporary admin login credentials for us to have a closer look?

    Please use the Private Information field for this: https://docs.generatepress.com/?s=private+information

    #2336844
    Israel

    Hi Fernando, I sent you the login credentials. Thanks

    #2337482
    Fernando
    Customer Support

    Where did you send it?

    Can you share the credentials here through the Private information field?

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