• Resolved EzySetup

    (@ezysetup)


    I am using a current version of Twenty Ten. I wish to disable the previous and next post links. I would prefer to do it on just a specific page, but doing it for the whole site is acceptable. I’ve tried several snippets of code I’ve found, but nothing has worked. Any help will be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Felipe Santos

    (@foosantos)

    Hi @ezysetup,

    An option to hide it is using CSS. Technically, it would still load on the page, but your users wouldn’t see it. Have you considered it?

    You can go to WP Admin > Appearance > Customize > Additional CSS, then add something like that:

    /* Hide Previous/Next post (FS) */
    
    #nav-below {
        display: none;
    }

    If you would like to hide only for specific posts, you can do that by getting the ID of the post by editing the post URL.

    /* Hide Previous/Next for post 155 (FS) */
    
    .postid-155 #nav-below {
        display: none;
    }

    In this case, the post ID would be 155, and you would get it from https://example.com/post.php?post=155&action=edit.

    Apart from that, if you use one of the new WordPress default themes (like Twenty Twenty-Three), you would be able to edit this directly from the Site Editor without using any code.

    Thread Starter EzySetup

    (@ezysetup)

    That works perfectly. Thank you very much.

    PS. It’s a club site. I’m stuck with Twenty Ten for the time being.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable previous and next post links’ is closed to new replies.