[Resolved] previous/next posts

Home Forums Support [Resolved] previous/next posts

Home Forums Support previous/next posts

Viewing 15 posts - 16 through 30 (of 34 total)
  • Author
    Posts
  • #311387
    Enrico

    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

    #311567
    Tom
    Lead Developer
    Lead Developer

    I just updated it to something more current ๐Ÿ™‚

    #311619
    Enrico

    Thanks a lot Tom!

    #311799
    Tom
    Lead Developer
    Lead Developer

    No problem! ๐Ÿ™‚

    #321843
    Johannes

    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.

    #321900
    Tom
    Lead Developer
    Lead Developer

    Yes, this code works: https://gist.github.com/generatepress/81709146251f7a9b645a

    How are you adding it?

    #322000
    Johannes

    Hi Tom,

    Thanks for the reply. I’m using the Cobalt Apps GP Extender. Should I ask over at Cobalt Apps?

    #322031
    Tom
    Lead Developer
    Lead Developer

    Maybe try one of these methods first just to make sure it works?: https://docs.generatepress.com/article/adding-php/

    #322035
    Johannes

    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.

    #322314
    Tom
    Lead Developer
    Lead Developer

    Can you send me temporary admin login details?: https://generatepress.com/contact/

    #322324
    Johannes

    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.

    #404300
    Enrico

    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

    #404439
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure what you mean? Can you link us to the page where you see the problem? Thanks!

    #404449
    Enrico

    Hi Leo,
    I see the problem in all posts when I use that tool.

    #404543
    Tom
    Lead Developer
    Lead Developer

    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;
    }
Viewing 15 posts - 16 through 30 (of 34 total)
  • You must be logged in to reply to this topic.