Remove Navigation Links on WordPress Posts

The posts on my site are not chronological so it makes no sense to have the “previous/next” navigation links.  The best way to remove them is to comment out the code in the single.php file.  Below are the steps I used to remove the navigation links from my posts.  This applies to the WordPress Twenty Fourteen theme, so your code may be different.

  1. Copy the single.php file from the parent theme folder to child theme folder.
  2. Open the copied single.php file in the child theme folder in Notepad++.
  3. Comment out the code under // Previous/next post navigation: // twentyfourteen_post_nav();

Before:Navigation Links

After:Navigation Links