[Resolved] Disable Archive Page “1 2 Next ->” Navigation

Home Forums Support [Resolved] Disable Archive Page “1 2 Next ->” Navigation

Home Forums Support Disable Archive Page “1 2 Next ->” Navigation

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1478936
    Christopher

    Hello –

    Using the GP Child Theme (boiler plate). I’ve looked for hooks, element codes, etc., even this post…

    https://generatepress.com/forums/topic/disable-nextprevious-post/

    …to try and figure out where to disable the “1 2 Next ->” navigation under the posts on the Blog page.

    I found this:

    https://generatepress.com/forums/topic/how-to-disable-previousnext-post-navigation/

    …but that doesn’t seem to work.

    Basically, my “Home Page” displays my latest posts. At the end of my 5 posts, just above the 3-column footer, is “1 2 Next ->” and I’d like to remove that. It’s not needed.

    Thank you in advance.

    -Chris

    #1478941
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .paging-navigation {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

    #1478944
    Christopher

    I have… 🙂 (see above)

    I tried to do my duediligence as mentioned in my original post. That CSS doesn’t work, so I’m wondering if it’s a filter thing or not?

    #1478952
    Leo
    Staff
    Customer Support

    Any chance you can link me to the page in question with the CSS applied?

    #1478956
    Christopher

    It’s behind a protected site. Can I PM you a login? I can make you one real quick. Or if you have another way, I’m all eyes…

    #1478959
    Leo
    Staff
    Customer Support

    You can use the private info box.

    #1478971
    Christopher

    Leo –

    Got it fixed. It didn’t occur to me to use the d**n browser dev. toolset to track down what was going on.

    Apologies.

    For everyone else, yes, this worked:

    .paging-navigation {
        display: none;
    }
    #1478974
    Leo
    Staff
    Customer Support

    No problem 🙂

    #2459225
    Rafał

    How to remove paging navigation HTML output?

    #2459336
    David
    Staff
    Customer Support

    Hi there,

    try adding this PHP snippet:

    
    add_action('wp',function(){
    	remove_action( 'generate_after_loop', 'generate_do_post_navigation' );	
    });
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.