• 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

    (@lyrathemes)

    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: https://demo.lyrathemes.com/kale/2016/01/12/cake-tea-party/

    Thread Starter bythecottagehearth

    (@bythecottagehearth)

    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.

    Hey @bythecottagehearth, @ricotheque from LyraThemes here.

    What you can do is create a child theme. Here’s a step-by-step on how to do that. 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.