1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Excerpt To Full Content Homepage

Discussion in 'HTML & Website Design' started by kertoon, Oct 17, 2019.

  1. #1
    I wanted to show a full blog content, instead of an excerpt for the homepage.
    I tried replacing the_excerpt to the_content, but it is not working.
    This is the code:
    <div class="entry-summary">
               <?php the_content(); ?>
               <span class="read-more"><a href="<?php the_permalink(); ?>"><?php esc_html_e('Continue Reading &raquo;', 'revenue'); ?></a></span>
             </div><!-- .entry-summary -->
    Code (markup):
    Or should I replace the entry-summary class and how do I do it?
    Last edited by a moderator: Oct 17, 2019
    kertoon, Oct 17, 2019 IP
  2. nshep

    nshep Greenhorn

    Likes Received:
    Best Answers:
    Trophy Points:
    Hmmm, the div class should not really have any say in this, unless there's some CSS attached that somehow limits the size of the excerpt. What I like to do when things aren't working the way I want is to look at the WordPress default themes, find one that does what I want, and see how it do so. This often lets me copy/paste solutions and simply modify them to my needs.
    nshep, Oct 17, 2019 IP
    sarahk likes this.