• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » How to Customize or Remove […] from WordPress Excerpts

How to Customize or Remove […] from WordPress Excerpts

Excerpt is a good way to shorten your article, it’s more like a summary of the article. Other than front page, some themes may use excerpts on the archive pages as well.The default WordPress excerpts are limited to first 55 words of the content and ends with ellipsis […] at the end of the paragraph.

To display an excerpt of the post, you may useĀ <?php the_excerpt(); ?> in the loop. Please refer to WordPress Codex page for more info about this.

Customize […] in WordPress excerpts

If you’d like to change the […] in the excerpts to something more useful like Read More, you may use the code below. You may also want to change the text to another word. The text will be linked to the permalink of the post.

As you can see from the code above, I added the .more-link class, so you can further customize the output of the Read More link.

Remove […] from WordPress excerpts

To remove […] from the excerpts, you may use the following code. The code should be in functions.php file of your child theme.

If you’ve any question about the WordPress excerpts, feel free to leave your comment below.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2023 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us