Title: Recent Posts
Last modified: August 30, 2023

---

# Recent Posts

 *  Resolved [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/)
 * How do I remove next post and previous post in the recent posts widget please?
   Go to the bottom of the post to see. Many thanks, in anticipation.
    -  This topic was modified 2 years, 9 months ago by [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frecent-posts-40%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17011619)
 * Hey [@roderickhdm](https://wordpress.org/support/users/roderickhdm/) – you’d 
   be able to hide those with some CSS code. Could you please follow the instructions
   below to add this code to the ‘Additional CSS’ on your site?
 *     ```wp-block-code
       /* Hide next/previous post links */
       .single .nav-links {
           display:none;
       }
       ```
   
 * **Instructions:**
   [https://wordpress.org/documentation/article/css/#custom-css-in-wordpress](https://wordpress.org/documentation/article/css/#custom-css-in-wordpress)
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17011657)
 * Thanks for your swift response Jor. Worked like magic. From now on, you are my
   bestie. Seriously, that’s been annoying me for weeks. So, thanks again. All the
   best. Rod
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17011935)
 * Spoke too soon. It’s come back again, in all my posts. Any other suggestions?
 *  [Alvaro Gómez](https://wordpress.org/support/users/mrfoxtalbot/)
 * (@mrfoxtalbot)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17012251)
 * Hey, [@roderickhdm](https://wordpress.org/support/users/roderickhdm/). I am testing
   the code Jordan shared and it seems to be working fine. It sounds like maybe 
   it did not get saved correctly? Maybe try adding it again?
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17012297)
 * cleared all cache. Reinserted orginal code. Saved it. See next and previous post
   titles. Probably a glitch my end. Strange you can’t see it but can. Forget it,
   it’s not really that important, just my preference. Thanks again for responding
   so quickly.
 *  [Alvaro Gómez](https://wordpress.org/support/users/mrfoxtalbot/)
 * (@mrfoxtalbot)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17012342)
 * Mmm… the CSS code itself is very straightforward. Here’s what I see when I test
   in on my browser:
 * Maybe there is something wrong with the way the code is being added? Could you
   take a screenshot of how you are adding your code (similar to the one below)?
 *  [⌊Screen Shot on 2023 08 30 at 12 48 39⌉](https://cloudup.com/cfC1lr5ti53)
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17012382)
 * In CSS. Got a mac but not a mac keyboard. Don’t know how to do a screenshot. 
   I’m a dummy:
 * Code looks just like this in CSS with line numbers to the left
 * Hide next/previous post links */
   .single .nav-links {display:none;}
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17012386)
 * I mean:
 * /* Hide next/previous post links */ .single .nav-links { display:none; }
 *  [Alvaro Gómez](https://wordpress.org/support/users/mrfoxtalbot/)
 * (@mrfoxtalbot)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17015066)
 * Could you try removing the entire code and adding just this part?
 *     ```wp-block-code
       .single .nav-links { display:none;}
       ```
   
 * > Don’t know how to do a screenshot.
 * You can follow [these steps](https://support.apple.com/en-gb/guide/mac-help/mh26782/mac).
   Once the screensshot is created, you can upload it to your own Media Library 
   and [share the link to the file](https://www.wonderplugin.com/wordpress-tutorials/how-to-find-the-url-of-media-files-uploaded-to-wordpress-media-library/#:~:text=Step%201%20%2D%20In%20the%20WordPress,side%20File%20URL%20input%20box.)
   in your reply.
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17015109)
 * Tried that. Doesn’t work. Tried reinserting the original CSS you sent me. Doesn’t
   work. I have code access. Is there anything I could delete on that front? Or 
   at least reduce the size of these links if I can’t get rid of them? You are very
   kind and patient with me. Sorry for taking up so much of your time. Thank you.
   Rod
 *  [Alvaro Gómez](https://wordpress.org/support/users/mrfoxtalbot/)
 * (@mrfoxtalbot)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17015485)
 * > Sorry for taking up so much of your time
 * No worries! We have all been there at some point 🙂
 * I see you already have quite a bit of CSS code in your customizer. I suspect 
   that we are running to a syntax error somewhere, possibly a missing closing `}`
 * Could you please try adding the code above at the very TOP of your CSS code? 
   Once you add it, please let us know (but do not remove it), I would like to inspect
   it.
 * Cheers!
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17015519)
 * I tried adding the shorter code. It works. Then I tried adding the longer code(
   the original one). It also works and I left it there. But now there is a huge
   gap between the end of each page of content and the the list of services/posts.
   If you can help me get rid of that, I will be your best friend forever, in a 
   manly kinda way 🙂
 *  Thread Starter [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * (@roderickhdm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17016466)
 * Ignore my last message please, working fine now. Thanks again for your help. 
   Rod

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Recent Posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwentyone/2.8/screenshot.
   png)
 * Twenty Twenty-One
 * [Support Threads](https://wordpress.org/support/theme/twentytwentyone/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwentyone/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwentyone/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwentyone/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [Rod Mitchell](https://wordpress.org/support/users/roderickhdm/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/recent-posts-40/#post-17016466)
 * Status: resolved