Tagged: 

  • This topic has 5 replies, 3 voices, and was last updated 9 years ago by ADN.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #46611
    dyc17
    Member

    Hello,

    How do I remove the previous and next post links at the bottom of each post?

    Thanks!

    #46614
    dyc17
    Member

    Figured it out. Removed it by adding this to the custom CSS box:

    #nav-below { display: none; }

    #46631
    Sakin
    Keymaster

    @dyc17: That’s cool. Thanks for sharing the solution 🙂

    #52205
    ADN
    Participant

    Hi there!

    I tried this, but its not the right solution in my case.

    On the blog-site:
    – I want to have the previous and next link on my blog-site.

    On the single-post-site:
    – There is for the previous and next the whole title of the next/previous post.
    I dont want to have the whole text. Just “next” / “previous”. Is that possible?

    ______
    If i put:

    #nav-below { display: none; }

    in my css, then it kills ALL “next” / “previous” on the complete site.

    http://www.cloud.adn.de

    Thanks

    #52228
    Sakin
    Keymaster

    @ADN: You cannot change that just from Custom CSS. For that you need to change the code. So, for this you need to build child theme http://catchthemes.com/blog/create-child-theme-wordpress/. Then copy catchkathmandu_content_nav() function from template-tags.php to your child theme functions.php file.

    Then you will see the following code:

    <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'catchkathmandu' ) . '</span> %title' ); ?>
    <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'catchkathmandu' ) . '</span>' ); ?>

    You need to replace with following:

    <?php previous_post_link( '%link', '<div class="nav-previous">Previous</div>' ); ?>
    <?php next_post_link( '%link', '<div class="nav-next">Next</div>' ); ?>
    #52265
    ADN
    Participant

    Hi Sakin!

    Thanks a lot!
    I hope I get it done.
    😉

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove Previous/Next post link’ is closed to new replies.