WordPress.org

Ready to get started?Download WordPress

Forums

Vintage Camera
[resolved] Shorter posts preview (6 posts)

  1. treefit
    Member
    Posted 1 year ago #

    Hi,
    thank you for your work, i love your theme ;)

    I just wanna know if it's possible (and how) to have a shorter preview of the posts in the main page. Now it shows the entire last posts, but i'd prefer to show only previews of them with the "keep reading" link or similar at the end of each.

    I've basis of html and php, so you could just suggest me where to put hand ;)

  2. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    The easiest way to do this without modifying the theme is to add a <!--more--> tag to your posts wherever you want to create a "read more" link.

    If you want to modify the theme, you can create a child theme, then copy and paste the parent theme's content.php into your child theme. Modify content.php and use a conditional check (probably ! is_single()) to output the_excerpt() instead of the_content() when on the blog/archive pages.

  3. treefit
    Member
    Posted 1 year ago #

    Thanks a lot! I used the first method with perfect results.
    I'll try the second one to practice anyway ;)

  4. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    Awesome, happy to help!

  5. bonenose
    Member
    Posted 1 year ago #

    Hi!

    Thank you for this theme! I also like it! :)
    I have a question similar to this. At first I was actually looking for this problem and with the "<!--more-->" tag it was solved!
    But there's still one thing bothering me. Is there a way to enable a image preview that you put in your post as a "Featured Image" ?

    Here's how the post would look when looking at it on the "home" page as a latest post. Not reading the post, just seeing it with the "continue reading" link/button.

    Image (Featured image preview)

    Text text text text text text text text

    Continue reading ling/button.

    How would I do this? Cause my featured image does not seem to show up even if I have the posts format set to standard or any other format for that matter, which btw is the format I want. Oh btw, I can't access the css or php or html or whatever as I have not upgraded my wordpress to the Custom Design thingy.

    Regards.

  6. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    @bonenose: It sounds like you're using WordPress.com (Custom Design is specific to WP.com), which is a slightly different version of the theme -- if so, please post your question on http://en.forums.wordpress.com/forum/themes/

    In short, the featured image will only display if you set the post format to Image. With a Standard post, you'd need to add the image to your content area. This can't be changed on WP.com, but could be customized if you're on a self-hosted install.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.