WordPress.org

Ready to get started?Download WordPress

Forums

Tiny Forge
[resolved] full posts on front page only (13 posts)

  1. melwp
    Member
    Posted 2 months ago #

    Hi, thanks again for this great theme. I've been using it for almost six months now on my blog thelandinbetween.com I like having full posts displayed on the front page. However, I'd like it if when pages 2, 3, etc... as well as other category pages are viewed, only a snippet is shown. Is that possible?

    Thank you

  2. Tomas Mackevicius
    Member
    Theme Author

    Posted 2 months ago #

    Hi Mel,

    an adorable blog! You see, if you wound not have questions, I would not know about it - that's not fair ;)

    I will try to look for the solution this evening.

  3. Tomas Mackevicius
    Member
    Theme Author

    Posted 2 months ago #

    Hi, Mel, here's the solution (but you will have to start using a child theme):

    copy to your child theme content.php and change this line:

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>

    to:

    <?php if ( is_search() || is_paged() || is_archive() ) : // Display Excerpts for Search, Archives and additional pages of Index view ?>

    If you want to add "...continue reading" link after the excerpt, please use this function in functions.php (it is temporarily because I will include it in the next version):

    function tinyforge_new_excerpt_more( $more ) {
    	return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('...continue reading <span class="meta-nav">→</span>', 'tinyforge') . '</a>';
    }
    add_filter( 'excerpt_more', 'tinyforge_new_excerpt_more' );

    You can see example: http://mtomas.com/?s=theme

  4. melwp
    Member
    Posted 2 months ago #

    Thanks for the instructions, and the compliments on my blog as well. :) I will give it a try once I figure out how to use a child theme.

    Thanks!

  5. Tomas Mackevicius
    Member
    Theme Author

    Posted 2 months ago #

    Mel,

    you could have it as a parent theme by renaming the theme in style.css, but you would lose the capability to update the theme, when new version would arrive.

    Another way would be to always have modified version of content.php as a backup and after every theme update, when all files would be replaced, you would reinstate your modified version.

    In any case having your own child theme is the preferred way ;)

    Just wait about a week and I will push new child theme version with the v1.5.8.

  6. melwp
    Member
    Posted 2 months ago #

    Ok, I figured out how to install the child theme, but I'll go ahead and wait for the new version. Thanks!

  7. Tomas Mackevicius
    Member
    Theme Author

    Posted 2 months ago #

  8. melwp
    Member
    Posted 2 months ago #

    Thanks! Should I still use a child theme?

  9. Tomas Mackevicius
    Member
    Theme Author

    Posted 2 months ago #

    Yes, when you will download zip file, look under INC folder for another zip that will have to be extracted and uploaded separately, then copy content.php to to child from main theme and make that change.

  10. melwp
    Member
    Posted 2 months ago #

    Ok, I have the child theme installed. Can you tell me how to copy the content.php? I found it in the main theme, but don't know how to copy it. Just select it all and then paste it where? Sorry, I'm very new to this. Thanks for all your help!

  11. Tomas Mackevicius
    Member
    Theme Author

    Posted 2 months ago #

    copy whole file from main to child (and FTP from your PC), then open it and do changes.

  12. Tomas Mackevicius
    Member
    Theme Author

    Posted 2 months ago #

    Or perhaps WP editor under appearance has the capability to upload new file or create one?

  13. melwp
    Member
    Posted 2 months ago #

    Got it! Thank you. Next I'll work on getting the featured image to display.

Reply

You must log in to post.

About this Theme

About this Topic