Site logo

Archived topic

Disable Archive Page "1 2 Next ->" Navigation

9 replies · Started by Christopher on October 8, 2020

Viewing posts 1–10 of 10

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

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?

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

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...

You can use the private info box.

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;
}

No problem :)

How to remove paging navigation HTML output?

Hi there,

try adding this PHP snippet:


add_action('wp',function(){
	remove_action( 'generate_after_loop', 'generate_do_post_navigation' );	
});
This archived topic is closed to new replies.