3C科技 娛樂遊戲 美食旅遊 時尚美妝 親子育兒 生活休閒 金融理財 健康運動 寰宇綜合

Zi 字媒體

2017-07-25T20:27:27+00:00
加入好友
原始文章 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

本文由aronhackcom提供 原文連結

寫了 5860316篇文章,獲得 23313次喜歡
精彩推薦