Increase Excerpt

Home Forums ColorNews Free Increase Excerpt

This topic contains 3 replies, has 2 voices, and was last updated by  nutronic 7 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1362227

    nutronic
    Participant

    How can I have my site show all text before the “<!–more–>” tag?

    Currently it cuts out mid sentence which is unprofessional, for example on one post it says:

    “What would you choose: a friend whose unhinged approach to justice turns your allies against you, or a sworn enemy who will stop at

    When it should actually say:

    “What would you choose: a friend whose unhinged approach to justice turns your allies against you, or a sworn enemy who will stop at nothing to see you suffer as your city burns? Based on the relationship you’ve built with John Doe, you’ll see one of two very different stories play out. So what’ll it be, Bruce: friend…or foe?”

    #1362277

    Ashish
    Moderator

    Hi @nutronic
    If you have some idea of HTML and PHP and WordPress child theme, you can create a child theme and change theme’s ‘template-parts/content.php’ template to achieve your requirement.

    Please take a reference from this article:

    Tutorial on Creating WordPress Child Theme

    Regards,
    ThemeGrill Support Team.

    #1362368

    nutronic
    Participant

    I have a plugin that makes a child theme so that is not an issue.

    However looking at the file that you stated is an issue, it only says this in reference to the excerpt.

    <div class="entry-content">
    		<?php
    			the_excerpt();
    		?>
    
    		<?php
    			wp_link_pages( array(
    				'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'colornews' ),
    				'after'  => '</div>',
    			) );
    		?>
    	</div><!-- .entry-content -->
    #1362372

    nutronic
    Participant
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Increase Excerpt’ is closed to new replies.