Forums

Adding A Word before the_excerpt (2 posts)

  1. drumat5280
    Member
    Posted 1 year ago #

    I word like the add the word "Summary:" before the_excerpt.

    When I simply do this:
    Summary: <?php the_excerpt(); ?>

    The result is this:
    Summary: <p>Video and photos of what a lightning arrestor does for a solar panel system.</p>

    Which means the word "Summary" is on a different line than "the_excerpt".

    I have tried several different things but I can't get it all on the same line. Any ideas?

  2. haochi
    Member
    Posted 1 year ago #

    I believe that you have to edit the wp_trim_excerpt() function, not sure where (probably before it returns $text, but I don't have time to test it out) so I guess you will have to experiment with that.

Topic Closed

This topic has been closed to new replies.

About this Topic