Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #4079

    I would like my main blog page to only show the first paragraph of my blog posts. That way they have to click on it to read more and comment. Is this possible? If not can I add a “comment” button on the bottom of each post. I want to make it easy for people to see they can comment.

    Thanks

    #44861

    Hey,

    you can use the excerpt field to control the excerpt content. Go to your post editor – there you’ll see the excerpt option field. If you can’t find it you can activate it by clicking on “screen options” and then check the excerpt checkbox. I made a screenshot:

    #44862

    Ok I see that, and I added a paragraph to the insert box, but the blog post is still showing up as the whole article. Am I missing something?

    Also, how can I make the title of the blog post bold?

    #44863

    1) Try to change following code in index.php:

    the_content('<span>'.__('Read more','habitat').'</span>'); ?>

    to:

    the_excerpt(); ?>

    2) Add following to style.css (at the very bottom):

    #top .siteheading, #top .siteheading a{
    font-weight: bold;
    }

    #44864

    Thanks, that worked. However it doesnt create a link at the bottom of the excerpt to read the rest. Is there a way to include this? The way it is right now, people wouldnt know that they would have to click the title to read the rest.

    #44865

    You can implement the read more button easily. Instead of

    the_excerpt(); ?>

    use:

    the_excerpt();
    echo "<a href='".get_permalink()."' class='more-link'>".__('Read more','avisio')."</a>";
    ?>

    #44866

    Thats just what I wanted, thank you!

    #44867

    Glad that I could help you :)

    #44868

    One more question. How about if I want to show the full blog, but on the bottom of the blog, put a button that links to the page that shows the comments? So I don’t want to show an excerpt, but the whole thing, and make a button that links to the page that includes the comments. Is there a way to make it so it automatically scrolls down to the comments section on the lower part of the page when they click on that button?

    Basically this blog is for older people and they are getting confused on how to comment :)

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Blog Preview Length’ is closed to new replies.