Archived topic
previous/next posts
33 replies · Started by ian on March 11, 2015
Hi Tom,
now I use hide CSS, but now I would like to completely remove previous/next post. Is this code still good?
It is more then two year old and I don't want to have issue, for example with hatom or new versions of generatepress
Thanks a lot
Enrico
I just updated it to something more current :)
Thanks a lot Tom!
No problem! :)
Hi,
Is this code still relevant? Tried it in the functions file. Didn't remove the previous/next.
I prefer to remove this sort of thing with a function, not CSS.
Thanks.
Yes, this code works: https://gist.github.com/generatepress/81709146251f7a9b645a
How are you adding it?
Hi Tom,
Thanks for the reply. I'm using the Cobalt Apps GP Extender. Should I ask over at Cobalt Apps?
Maybe try one of these methods first just to make sure it works?: https://docs.generatepress.com/article/adding-php/
That doesn't seem to work...
I removed the code from the GP Extender and added it to code snippets, then refreshed the front end. The previous/next is still there.
I set the scope to run snippet everywhere and Only run on site front-end. None of those options work.
Can you send me temporary admin login details?: https://generatepress.com/contact/
Tom,
Please contact me at blomjansie [at] gmail.com with the email I should use to set you up as admin. Let me create you an admin with your email, if you don't mind.
Hi Tom,
I am using your last php code to disable post navigation.
I noticed that in all my site's posts this tool http://www.seoreviewtools.com/html-headings-checker/ find an h6.
It say:
H6: Post navigation
I tried other similar tools and I had the same result, they find the "H6: Post navigation" in all the posts of my blog jobseekeritalia.
I don't find this "post navigation" txt in my posts.
Do you have any idea of the cause of this problem?
Thanks a lot
Hi there,
Not sure what you mean? Can you link us to the page where you see the problem? Thanks!
Hi Leo,
I see the problem in all posts when I use that tool.
I'm adding a filter into the theme which will allow us to remove the entire post navigation element.
For now, do this so screen readers don't read it:
.post-navigation {
display: none;
}