Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4834

    Hi dude, this happened on my habitat theme as well but you helped me fix it nice and easy so im hoping you could do the same for this theme too. the example is http://epicawesomefunny.com/ . I want to use the excerpt function to put whatever i like to show on the mainpage and then the read more button below. ( it is essential the social sharing buttons u see there do appear on the frontpage ). Thanks a lot !

    #47688

    Hey,

    a)

    1) Make a copy of loop-index.php (located in the folder “includes”)

    2) Call the copy loop-single.php

    4) In loop-index.php change following code:

    the_content(__('Read more','avia_framework'));  ?>

    to:

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

    5) In single.php change

    get_template_part( 'includes/loop', 'index' );

    to:

    get_template_part( 'includes/loop', 'single' );

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

The topic ‘Blog posts display entire post ignoring excerpt and read more buttons nonexisten’ is closed to new replies.