Customize Read More Text In WordPress Excerpt

目錄

原始文章

Customize Read More Text In WordPress Excerpt


If you want to customize read more text in WordPress, you can add this code in function.php. It’s simple and beautiful.

function custom_excerpt_more($more) {
     return '…';
 }
 add_filter('excerpt_more', 'custom_excerpt_more');

However, if you add post excerpts manually rather than generating automatically, this method is not recommended. Because this works when length of excerpts over the limit, and the rest of excerpts will be hidden, replaced with the excerpt more text. Nevertheless, this situation is not suitable for custom excerpt. The custom excerpts will completely show by default.

You can check another solution here. 〈Limit Post Excerpt Length In English And Chinese Edition For WordPress〉

Related Posts

The Complete WordPress Customization Tutorial – Just Copy And Paste And Work

Content Protection by DMCA.com
A
Aron

Leave a Reply

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