Title: Locating code for line
Last modified: May 11, 2017

---

# Locating code for line

 *  [bythecottagehearth](https://wordpress.org/support/users/bythecottagehearth/)
 * (@bythecottagehearth)
 * [9 years ago](https://wordpress.org/support/topic/locating-code-for-line/)
 * Hi there!
 * When previewing a blog post (first one, trying to get it all right before I start
   posting), there are two lines between the bottom of the post content and the 
   comments section. It’s as though something is meant to be there.
 * Ideally, I would like to put the shortcode for my mailing list in there to avoid
   having to add it to the bottom of every post, but if this isn’t going to be possible,
   is there any way to remove one of the lines so it doesn’t look like it’s been
   left empty accidentally?
 * Thanks and great work on the theme!
 * Dana

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

 *  Theme Author [lyrathemes](https://wordpress.org/support/users/lyrathemes/)
 * (@lyrathemes)
 * [9 years ago](https://wordpress.org/support/topic/locating-code-for-line/#post-9121047)
 * Dana, thanks for trying out Kale, we appreciate it.
 * Those two lines show the next/previous posts. Since this is your first post, 
   nothing is showing up there. It will look like our demo post here, eventually:
   [http://demo.lyrathemes.com/kale/2016/01/12/cake-tea-party/](http://demo.lyrathemes.com/kale/2016/01/12/cake-tea-party/)
 *  Thread Starter [bythecottagehearth](https://wordpress.org/support/users/bythecottagehearth/)
 * (@bythecottagehearth)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/locating-code-for-line/#post-9317960)
 * Is there anyway to remove that function? Or create an exclude rule? Because I
   have wpcourseware installed and don’t want the “next/previous post” thing there
   for my course units, but it would still be good for my blog posts.
 *  [Rico Mossesgeld](https://wordpress.org/support/users/ricotheque/)
 * (@ricotheque)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/locating-code-for-line/#post-9318762)
 * Hey [@bythecottagehearth](https://wordpress.org/support/users/bythecottagehearth/),
   [@ricotheque](https://wordpress.org/support/users/ricotheque/) from LyraThemes
   here.
 * What you can do is create a child theme. [Here’s a step-by-step on how to do that](https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/).
   Make sure to copy the style.css of the original theme so that everything looks
   more or less the same.
 * Next, just copy the single.php template file from the original theme into your
   child. Then look for this part in your child’s single.php:
 *     ```
       <div class="pagination-post">
           <div class="previous_post"><?php previous_post_link('%link','%title',true); ?></div>
           <div class="next_post"><?php next_post_link('%link','%title',true); ?></div>
       </div>
       ```
   
 * You can edit that part to remove the next/previous post links, and/or add your
   own rules to exclude them as necessary.
 * Hope this helps!

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

The topic ‘Locating code for line’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/kale/2.8.2/screenshot.jpg)
 * Kale
 * [Support Threads](https://wordpress.org/support/theme/kale/)
 * [Active Topics](https://wordpress.org/support/theme/kale/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/kale/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/kale/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Rico Mossesgeld](https://wordpress.org/support/users/ricotheque/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/locating-code-for-line/#post-9318762)
 * Status: not resolved