Customize Read More Text In WordPress Excerpt

Outline

    Original Post

    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



    Related Posts

    Aron

    A data scientist working in a retail company, with experience in web design and marketing. Recently dives into cryptocurrency and quantitative investing.

    facebook telegram
    Content Protection by DMCA.com

    1 comment

    1. Paige

      Good hit and chilly. Appгoach too much gаrlic.

    Leave a Reply

    • Required fields are market * .
    • Your email address will not be published.
    • Please ensure your email address is correct, then you will get a notification once a new comment reply.

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