Tagged: posts
- This topic has 5 replies, 3 voices, and was last updated 9 years, 2 months ago by ADN.
-
AuthorPosts
-
October 30, 2014 at 6:00 am #46611dyc17Member
Hello,
How do I remove the previous and next post links at the bottom of each post?
Thanks!
October 30, 2014 at 6:17 am #46614dyc17MemberFigured it out. Removed it by adding this to the custom CSS box:
#nav-below { display: none; }
October 30, 2014 at 8:23 am #46631February 23, 2015 at 2:08 pm #52205ADNParticipantHi 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.
Thanks
February 23, 2015 at 11:26 pm #52228SakinKeymaster@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 fromtemplate-tags.php
to your child themefunctions.php
file.Then you will see the following code:
<?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'catchkathmandu' ) . '</span> %title' ); ?> <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', '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>' ); ?>
February 24, 2015 at 1:35 pm #52265ADNParticipantHi Sakin!
Thanks a lot!
I hope I get it done.
😉 -
AuthorPosts
- The topic ‘Remove Previous/Next post link’ is closed to new replies.