WordPress.org

Ready to get started?Download WordPress

Forums

Vantage
Changing full post on Index Page to excerpt ? (10 posts)

  1. Kirils
    Member
    Posted 8 months ago #

    Hello,

    Could you please suggest how can I change full posts to excerpts on the main index.php (short posts with "Continue Reading" button). heeelp

    Thank you.

  2. Greg Priday
    Member
    Theme Author

    Posted 8 months ago #

    Hi there Kirils.

    If you navigate to Appearance > Theme Settings, under the Blog tab there's a setting called "Post Content". Changing that should give you what you're after.

  3. Kirils
    Member
    Posted 8 months ago #

    Thank you for the fast reply! And yes it worked. However, more questions arise...

    1) How can I change [...] into [Continue Reading] and turning it into a click able link ?

    Thank you.

  4. Greg Priday
    Member
    Theme Author

    Posted 8 months ago #

    This is something that's been requested before. I'll be sure to add that as an option in a future update.

  5. Kirils
    Member
    Posted 8 months ago #

    Ou, that's wonderful. That is why I like your template, because you constantly improve and support it!

    P.S. you can probably include something similar in the Grid system. I also like the New Circle style, looks great.

    2) When I set up the featured Image, it looks massive in the post itself. It's just 300 x 300 but it makes it and stretches it 4 times bigger. Any chance making it smaller through functions.php ?

  6. Greg Priday
    Member
    Theme Author

    Posted 8 months ago #

    I do take a lot of pride in Vantage, so it's something I support and improve to the best of my ability. We still have a long way to go though...

    To answer 2), the featured image is cropped down to a landscape image. If your image is too small, then WordPress wont crop it. It'll just use the image you uploaded.

    What I'd suggest in your case is to navigate to Appearance > Theme Settings. Under the blog tab; disable "Featured Image" and change "Featured Image Type" to Small Icon.

  7. Game On
    Member
    Posted 8 months ago #

    Hi Greg,

    I was wondering if you can help me out here. If I want to display the full post on one page, but just post excerpt on the home page. How do I do that? Thanks!

  8. Kirils
    Member
    Posted 8 months ago #

    Hello Greg,

    I have done what you have asked. But what I am trying to say, I want the Small Icon, but when I go to the post itself by clicking the icon or link, I see a huge featured image, which I want to be smaller.
    Hope that make sense =) Or maybe can I even delete it from a single-post?

  9. digitohter
    Member
    Posted 4 months ago #

    1) How can I change [...] into [Continue Reading] and turning it into a click able link ?

    Just place this code to Your child themes functions.php:

    function new_excerpt_more($more) {
        global $post;
        return '… <a href="'. get_permalink($post->ID) . '">' . __('Read More', 'vantage') . '</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    You can also translate "Read more" via translation files.

  10. Rob
    Member
    Posted 3 months ago #

    @digitohter I created a functions.php file in my Child Theme and used the code you shared and it worked, except for it added a ? in a diamond before the read more link. http://piercelitter.com/blog/

    Any ideas how to get rid of the "?" ?

    Thank you for your help.

Reply

You must log in to post.

About this Theme

About this Topic